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

Public Member Functions

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

Static Public Member Functions

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

Static Protected Attributes

typing _offsetof_center = 0
 
typing _offsetof_radius = 16
 

Detailed Description

Generated from:  MR::Sphere2d

\\ingroup MathGroup

Constructor & Destructor Documentation

◆ __init__() [1/3]

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

◆ __init__() [2/3]

None mrmeshpy.Sphere2d.__init__ ( self)

◆ __init__() [3/3]

None mrmeshpy.Sphere2d.__init__ ( self,
Vector2d c,
float r )

Member Function Documentation

◆ __eq__()

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

◆ distance()

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

◆ distanceSq()

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

◆ operator() [1/2]

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

◆ operator() [2/2]

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

◆ project()

Vector2d mrmeshpy.Sphere2d.project ( self,
Vector2d x )
finds the closest point on sphere

Member Data Documentation

◆ _offsetof_center

typing mrmeshpy.Sphere2d._offsetof_center = 0
staticprotected

◆ _offsetof_radius

typing mrmeshpy.Sphere2d._offsetof_radius = 16
staticprotected

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