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

Public Member Functions

bool __eq__ (self, ConstSphere3d b)
 __init__ (self, *args, **kwargs)
bool __ne__ (self, ConstSphere3d b)
float distance (self, ConstVector3d x)
float distanceSq (self, ConstVector3d x)
Vector3d project (self, ConstVector3d x)
ConstVector3d center (self)
float radius (self)

Static Protected Attributes

typing _offsetof_center = 0
typing _offsetof_radius = 24

Detailed Description

Generated from:  MR::Sphere3d

Constructor & Destructor Documentation

◆ __init__()

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

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

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

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

Implicit copy constructor.

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

Member Function Documentation

◆ __eq__()

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

◆ __ne__()

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

◆ center()

ConstVector3d mrmeshpy.ConstSphere3d.center ( self)

Reimplemented in mrmeshpy.Sphere3d, and mrmeshpy.Sphere3d.

◆ distance()

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

◆ distanceSq()

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

◆ project()

Vector3d mrmeshpy.ConstSphere3d.project ( self,
ConstVector3d x )
finds the closest point on sphere

◆ radius()

float mrmeshpy.ConstSphere3d.radius ( self)

Member Data Documentation

◆ _offsetof_center

typing mrmeshpy.ConstSphere3d._offsetof_center = 0
staticprotected

◆ _offsetof_radius

typing mrmeshpy.ConstSphere3d._offsetof_radius = 24
staticprotected

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