MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / LoadClassPolygonPoint

Function LoadClassPolygonPoint

src/Core/Bindings/obe/Transform/Transform.cpp:120–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118 = sol::var(obe::Transform::Polygon::DefaultTolerance);
119 }
120 void LoadClassPolygonPoint(sol::state_view state)
121 {
122 sol::table TransformNamespace = state["obe"]["Transform"].get<sol::table>();
123 sol::usertype<obe::Transform::PolygonPoint> bindPolygonPoint
124 = TransformNamespace.new_usertype<obe::Transform::PolygonPoint>(
125 "PolygonPoint", sol::call_constructor,
126 sol::constructors<obe::Transform::PolygonPoint(obe::Transform::Polygon&,
127 obe::Transform::point_index_t),
128 obe::Transform::PolygonPoint(obe::Transform::Polygon&,
129 obe::Transform::point_index_t,
130 const obe::Transform::UnitVector&)>(),
131 sol::base_classes, sol::bases<obe::Transform::UnitVector>());
132 bindPolygonPoint["remove"] = &obe::Transform::PolygonPoint::remove;
133 bindPolygonPoint["distance"] = &obe::Transform::PolygonPoint::distance;
134 bindPolygonPoint["getRelativePosition"]
135 = &obe::Transform::PolygonPoint::getRelativePosition;
136 bindPolygonPoint["setRelativePosition"]
137 = &obe::Transform::PolygonPoint::setRelativePosition;
138 bindPolygonPoint["move"] = &obe::Transform::PolygonPoint::move;
139 bindPolygonPoint["index"] = sol::property(
140 [](obe::Transform::PolygonPoint* self) -> const point_index_t& {
141 return self->index;
142 });
143 }
144 void LoadClassPolygonSegment(sol::state_view state)
145 {
146 sol::table TransformNamespace = state["obe"]["Transform"].get<sol::table>();

Callers

nothing calls this directly

Calls 1

propertyFunction · 0.85

Tested by

no test coverage detected