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

Public Member Functions

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

Static Public Member Functions

None __init__ (*args, **kwargs)
 
Sphere3d operator (*args, **kwargs)
 
Sphere3d operator (*args, **kwargs)
 

Static Protected Attributes

typing _offsetof_center = 0
 
typing _offsetof_radius = 24
 

Detailed Description

Generated from:  MR::Sphere3d

\\ingroup MathGroup

Constructor & Destructor Documentation

◆ __init__() [1/3]

None mrmeshpy.Sphere3d.__init__ ( * args,
** kwargs )
static

◆ __init__() [2/3]

None mrmeshpy.Sphere3d.__init__ ( self)

◆ __init__() [3/3]

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

Member Function Documentation

◆ __eq__()

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

◆ distance()

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

◆ distanceSq()

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

◆ operator() [1/2]

Sphere3d mrmeshpy.Sphere3d.operator ( * args,
** kwargs )
static

◆ operator() [2/2]

Sphere3d mrmeshpy.Sphere3d.operator ( * args,
** kwargs )
static

◆ project()

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

Member Data Documentation

◆ _offsetof_center

typing mrmeshpy.Sphere3d._offsetof_center = 0
staticprotected

◆ _offsetof_radius

typing mrmeshpy.Sphere3d._offsetof_radius = 24
staticprotected

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