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

Public Member Functions

bool __eq__ (self, ConstSphere2f b)
 __init__ (self, *args, **kwargs)
bool __ne__ (self, ConstSphere2f b)
float distance (self, ConstVector2f x)
float distanceSq (self, ConstVector2f x)
Vector2f project (self, ConstVector2f x)
ConstVector2f center (self)
float radius (self)

Static Protected Attributes

typing _offsetof_center = 0
typing _offsetof_radius = 8

Detailed Description

Generated from:  MR::Sphere2f

Constructor & Destructor Documentation

◆ __init__()

mrmeshpy.ConstSphere2f.__init__ ( self,
* args,
** kwargs )
__init__(*args, **kwargs)
Overloaded function.

1. __init__(self: meshlib.mrmeshpy.ConstSphere2f) -> None

2. __init__(self: meshlib.mrmeshpy.ConstSphere2f, c: meshlib.mrmeshpy.ConstVector2f, r: float) -> None

3. __init__(self: meshlib.mrmeshpy.ConstSphere2f, arg0: meshlib.mrmeshpy.ConstSphere2f) -> None

Implicit copy constructor.

4. __init__(self: meshlib.mrmeshpy.ConstSphere2f, : meshlib.mrmeshpy.ConstSphere2f) -> None

Member Function Documentation

◆ __eq__()

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

◆ __ne__()

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

◆ center()

ConstVector2f mrmeshpy.ConstSphere2f.center ( self)

Reimplemented in mrmeshpy.Sphere2f, and mrmeshpy.Sphere2f.

◆ distance()

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

◆ distanceSq()

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

◆ project()

Vector2f mrmeshpy.ConstSphere2f.project ( self,
ConstVector2f x )
finds the closest point on sphere

◆ radius()

float mrmeshpy.ConstSphere2f.radius ( self)

Member Data Documentation

◆ _offsetof_center

typing mrmeshpy.ConstSphere2f._offsetof_center = 0
staticprotected

◆ _offsetof_radius

typing mrmeshpy.ConstSphere2f._offsetof_radius = 8
staticprotected

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