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

Public Member Functions

Vector2d __call__ (self, float param)
 
None __init__ (self)
 
None __init__ (self, Vector2d p, Vector2d d)
 
Line2d __neg__ (self)
 
Line2d __pos__ (self)
 
float distanceSq (self, Vector2d x)
 
Line2d normalized (self)
 
Vector2d project (self, Vector2d x)
 

Static Public Member Functions

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

Static Protected Attributes

typing _offsetof_d = 16
 
typing _offsetof_p = 0
 

Detailed Description

Generated from:  MR::Line2d

2- or 3-dimensional line: cross( x - p, d ) = 0
\\ingroup MathGroup

Constructor & Destructor Documentation

◆ __init__() [1/3]

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

◆ __init__() [2/3]

None mrmeshpy.Line2d.__init__ ( self)

◆ __init__() [3/3]

None mrmeshpy.Line2d.__init__ ( self,
Vector2d p,
Vector2d d )

Member Function Documentation

◆ __call__()

Vector2d mrmeshpy.Line2d.__call__ ( self,
float param )
returns point on the line, where param=0 returns p and param=1 returns p+d

◆ __neg__()

Line2d mrmeshpy.Line2d.__neg__ ( self)
returns same line represented with flipped direction of d-vector

◆ __pos__()

Line2d mrmeshpy.Line2d.__pos__ ( self)
returns same representation

◆ distanceSq()

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

◆ normalized()

Line2d mrmeshpy.Line2d.normalized ( self)
returns same line represented with unit d-vector

◆ operator() [1/2]

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

◆ operator() [2/2]

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

◆ project()

Vector2d mrmeshpy.Line2d.project ( self,
Vector2d x )
finds the closest point on line

Member Data Documentation

◆ _offsetof_d

typing mrmeshpy.Line2d._offsetof_d = 16
staticprotected

◆ _offsetof_p

typing mrmeshpy.Line2d._offsetof_p = 0
staticprotected

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