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

Function LoadClassPolygonSegment

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

Source from the content-addressed store, hash-verified

142 });
143 }
144 void LoadClassPolygonSegment(sol::state_view state)
145 {
146 sol::table TransformNamespace = state["obe"]["Transform"].get<sol::table>();
147 sol::usertype<obe::Transform::PolygonSegment> bindPolygonSegment
148 = TransformNamespace.new_usertype<obe::Transform::PolygonSegment>(
149 "PolygonSegment", sol::call_constructor,
150 sol::constructors<obe::Transform::PolygonSegment(
151 const obe::Transform::PolygonPoint&,
152 const obe::Transform::PolygonPoint&)>());
153 bindPolygonSegment["getAngle"] = &obe::Transform::PolygonSegment::getAngle;
154 bindPolygonSegment["getLength"] = &obe::Transform::PolygonSegment::getLength;
155 bindPolygonSegment["first"] = sol::property(
156 [](obe::Transform::PolygonSegment* self) -> const PolygonPoint& {
157 return self->first;
158 });
159 bindPolygonSegment["second"] = sol::property(
160 [](obe::Transform::PolygonSegment* self) -> const PolygonPoint& {
161 return self->second;
162 });
163 }
164 void LoadClassRect(sol::state_view state)
165 {
166 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