MeshLib Python Docs
Loading...
Searching...
No Matches
meshlib.mrmeshpy.Line3d Class Reference

Public Member Functions

Vector3d __call__ (self, float param)
 
None __init__ (self)
 
None __init__ (self, Vector3d p, Vector3d d)
 
None __init__ (self, Line3d arg0)
 
Line3d __neg__ (self)
 
Line3d __pos__ (self)
 
float distanceSq (self, Vector3d x)
 
Line3d normalized (self)
 
Vector3d project (self, Vector3d x)
 

Detailed Description

Generated from:  MR::Line3d
Aliases:  Line_Vector3_double, Line3_double, Line_Vector3d, Line3_double

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

Constructor & Destructor Documentation

◆ __init__() [1/3]

None meshlib.mrmeshpy.Line3d.__init__ ( self)

◆ __init__() [2/3]

None meshlib.mrmeshpy.Line3d.__init__ ( self,
Vector3d p,
Vector3d d )

◆ __init__() [3/3]

None meshlib.mrmeshpy.Line3d.__init__ ( self,
Line3d arg0 )
Implicit copy constructor.

Member Function Documentation

◆ __call__()

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

◆ __neg__()

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

◆ __pos__()

Line3d meshlib.mrmeshpy.Line3d.__pos__ ( self)
returns same representation

◆ distanceSq()

float meshlib.mrmeshpy.Line3d.distanceSq ( self,
Vector3d x )
returns squared distance from given point to this line

◆ normalized()

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

◆ project()

Vector3d meshlib.mrmeshpy.Line3d.project ( self,
Vector3d x )
finds the closest point on line

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