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

Public Member Functions

Vector2d __call__ (self, float param)
 
None __init__ (self)
 
None __init__ (self, Vector2d a, Vector2d b)
 
Vector2d dir (self)
 
float length (self)
 
float lengthSq (self)
 

Static Public Member Functions

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

Static Protected Attributes

typing _offsetof_a = 0
 
typing _offsetof_b = 16
 

Detailed Description

Generated from:  MR::LineSegm2d

a segment of straight dimensional line

Constructor & Destructor Documentation

◆ __init__() [1/3]

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

◆ __init__() [2/3]

None mrmeshpy.LineSegm2d.__init__ ( self)

◆ __init__() [3/3]

None mrmeshpy.LineSegm2d.__init__ ( self,
Vector2d a,
Vector2d b )

Member Function Documentation

◆ __call__()

Vector2d mrmeshpy.LineSegm2d.__call__ ( self,
float param )
returns point on the line, where param=0 returns a and param=1 returns b

◆ dir()

Vector2d mrmeshpy.LineSegm2d.dir ( self)
returns directional vector of the line

◆ length()

float mrmeshpy.LineSegm2d.length ( self)
returns the length of this line segment

◆ lengthSq()

float mrmeshpy.LineSegm2d.lengthSq ( self)
returns squared length of this line segment

◆ operator() [1/2]

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

◆ operator() [2/2]

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

Member Data Documentation

◆ _offsetof_a

typing mrmeshpy.LineSegm2d._offsetof_a = 0
staticprotected

◆ _offsetof_b

typing mrmeshpy.LineSegm2d._offsetof_b = 16
staticprotected

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