MCPcopy Create free account
hub / github.com/ThePhD/sol2 / is_unit

Method is_unit

examples/source/usertype.cpp:36–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 }
35
36 bool is_unit() const {
37 return (x * x + y * y) == 1.f;
38 }
39};
40
41struct variables {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected