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

Public Member Functions

Vector3f __call__ (self, float param)
 
None __init__ (self)
 
None __init__ (self, Vector3f p, Vector3f d)
 
None __init__ (self, Line3d l)
 
Line3f __neg__ (self)
 
Line3f __pos__ (self)
 
str __repr__ (self)
 
float distanceSq (self, Vector3f x)
 
Line3f normalized (self)
 
Vector3f project (self, Vector3f x)
 

Static Public Member Functions

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

Static Protected Attributes

typing _offsetof_d = 12
 
typing _offsetof_p = 0
 

Detailed Description

Generated from:  MR::Line3f

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

Constructor & Destructor Documentation

◆ __init__() [1/4]

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

◆ __init__() [2/4]

None mrmeshpy.Line3f.__init__ ( self)

◆ __init__() [3/4]

None mrmeshpy.Line3f.__init__ ( self,
Vector3f p,
Vector3f d )

◆ __init__() [4/4]

None mrmeshpy.Line3f.__init__ ( self,
Line3d l )

Member Function Documentation

◆ __call__()

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

◆ __neg__()

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

◆ __pos__()

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

◆ __repr__()

str mrmeshpy.Line3f.__repr__ ( self)

◆ distanceSq()

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

◆ normalized()

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

◆ operator() [1/2]

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

◆ operator() [2/2]

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

◆ project()

Vector3f mrmeshpy.Line3f.project ( self,
Vector3f x )
finds the closest point on line

Member Data Documentation

◆ _offsetof_d

typing mrmeshpy.Line3f._offsetof_d = 12
staticprotected

◆ _offsetof_p

typing mrmeshpy.Line3f._offsetof_p = 0
staticprotected

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