Public Member Functions | |
| bool | __eq__ (self, ConstSphere2d b) |
| __init__ (self, *args, **kwargs) | |
| bool | __ne__ (self, ConstSphere2d b) |
| float | distance (self, ConstVector2d x) |
| float | distanceSq (self, ConstVector2d x) |
| Vector2d | project (self, ConstVector2d x) |
| ConstVector2d | center (self) |
| float | radius (self) |
Static Protected Attributes | |
| typing | _offsetof_center = 0 |
| typing | _offsetof_radius = 16 |
Generated from: MR::Sphere2d
| mrmeshpy.ConstSphere2d.__init__ | ( | self, | |
| * | args, | ||
| ** | kwargs ) |
__init__(*args, **kwargs) Overloaded function. 1. __init__(self: meshlib.mrmeshpy.ConstSphere2d) -> None 2. __init__(self: meshlib.mrmeshpy.ConstSphere2d, c: meshlib.mrmeshpy.ConstVector2d, r: float) -> None 3. __init__(self: meshlib.mrmeshpy.ConstSphere2d, arg0: meshlib.mrmeshpy.ConstSphere2d) -> None Implicit copy constructor. 4. __init__(self: meshlib.mrmeshpy.ConstSphere2d, : meshlib.mrmeshpy.ConstSphere2d) -> None
| bool mrmeshpy.ConstSphere2d.__eq__ | ( | self, | |
| ConstSphere2d | b ) |
| bool mrmeshpy.ConstSphere2d.__ne__ | ( | self, | |
| ConstSphere2d | b ) |
| ConstVector2d mrmeshpy.ConstSphere2d.center | ( | self | ) |
Reimplemented in mrmeshpy.Sphere2d, and mrmeshpy.Sphere2d.
| float mrmeshpy.ConstSphere2d.distance | ( | self, | |
| ConstVector2d | x ) |
returns signed distance from given point to this sphere: positive - outside, zero - on sphere, negative - inside
| float mrmeshpy.ConstSphere2d.distanceSq | ( | self, | |
| ConstVector2d | x ) |
returns squared distance from given point to this sphere
| Vector2d mrmeshpy.ConstSphere2d.project | ( | self, | |
| ConstVector2d | x ) |
finds the closest point on sphere
| float mrmeshpy.ConstSphere2d.radius | ( | self | ) |
|
staticprotected |
|
staticprotected |