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

Public Member Functions

bool __eq__ (self, Sphere3f b)
 
None __init__ (self)
 
None __init__ (self, Vector3f c, float r)
 
None __init__ (self, Sphere3f l)
 
float distance (self, Vector3f x)
 
float distanceSq (self, Vector3f x)
 
Vector3f project (self, Vector3f x)
 

Static Public Member Functions

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

Static Protected Attributes

typing _offsetof_center = 0
 
typing _offsetof_radius = 12
 

Detailed Description

Generated from:  MR::Sphere3f
Aliases:  Features.Primitives.Sphere

\\ingroup MathGroup

Constructor & Destructor Documentation

◆ __init__() [1/4]

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

◆ __init__() [2/4]

None mrmeshpy.Sphere3f.__init__ ( self)

◆ __init__() [3/4]

None mrmeshpy.Sphere3f.__init__ ( self,
Vector3f c,
float r )

◆ __init__() [4/4]

None mrmeshpy.Sphere3f.__init__ ( self,
Sphere3f l )

Member Function Documentation

◆ __eq__()

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

◆ distance()

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

◆ distanceSq()

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

◆ operator() [1/2]

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

◆ operator() [2/2]

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

◆ project()

Vector3f mrmeshpy.Sphere3f.project ( self,
Vector3f x )
finds the closest point on sphere

Member Data Documentation

◆ _offsetof_center

typing mrmeshpy.Sphere3f._offsetof_center = 0
staticprotected

◆ _offsetof_radius

typing mrmeshpy.Sphere3f._offsetof_radius = 12
staticprotected

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