MeshLib Python Docs
Loading...
Searching...
No Matches
meshlib.mrmeshpy.Sphere3d Class Reference

Public Member Functions

bool __eq__ (self, Sphere3d b)
 
None __init__ (self)
 
None __init__ (self, Vector3d c, float r)
 
None __init__ (self, Sphere3d arg0)
 
float distance (self, Vector3d x)
 
float distanceSq (self, Vector3d x)
 
Vector3d project (self, Vector3d x)
 

Detailed Description

Generated from:  MR::Sphere3d
Aliases:  Sphere_Vector3_double

\\ingroup MathGroup

Constructor & Destructor Documentation

◆ __init__() [1/3]

None meshlib.mrmeshpy.Sphere3d.__init__ ( self)

◆ __init__() [2/3]

None meshlib.mrmeshpy.Sphere3d.__init__ ( self,
Vector3d c,
float r )

◆ __init__() [3/3]

None meshlib.mrmeshpy.Sphere3d.__init__ ( self,
Sphere3d arg0 )
Implicit copy constructor.

Member Function Documentation

◆ __eq__()

bool meshlib.mrmeshpy.Sphere3d.__eq__ ( self,
Sphere3d b )

◆ distance()

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

◆ distanceSq()

float meshlib.mrmeshpy.Sphere3d.distanceSq ( self,
Vector3d x )
returns squared distance from given point to this sphere

◆ project()

Vector3d meshlib.mrmeshpy.Sphere3d.project ( self,
Vector3d x )
finds the closest point on sphere

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