MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.ConstSphere2d Class Reference
Inheritance diagram for mrmeshpy.ConstSphere2d:

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

Detailed Description

Generated from:  MR::Sphere2d

Constructor & Destructor Documentation

◆ __init__()

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

Member Function Documentation

◆ __eq__()

bool mrmeshpy.ConstSphere2d.__eq__ ( self,
ConstSphere2d b )

◆ __ne__()

bool mrmeshpy.ConstSphere2d.__ne__ ( self,
ConstSphere2d b )

◆ center()

ConstVector2d mrmeshpy.ConstSphere2d.center ( self)

Reimplemented in mrmeshpy.Sphere2d, and mrmeshpy.Sphere2d.

◆ distance()

float mrmeshpy.ConstSphere2d.distance ( self,
ConstVector2d x )
returns signed distance from given point to this sphere:
positive - outside, zero - on sphere, negative - inside

◆ distanceSq()

float mrmeshpy.ConstSphere2d.distanceSq ( self,
ConstVector2d x )
returns squared distance from given point to this sphere

◆ project()

Vector2d mrmeshpy.ConstSphere2d.project ( self,
ConstVector2d x )
finds the closest point on sphere

◆ radius()

float mrmeshpy.ConstSphere2d.radius ( self)

Member Data Documentation

◆ _offsetof_center

typing mrmeshpy.ConstSphere2d._offsetof_center = 0
staticprotected

◆ _offsetof_radius

typing mrmeshpy.ConstSphere2d._offsetof_radius = 16
staticprotected

The documentation for this class was generated from the following file: