MeshLib Python Docs
Loading...
Searching...
No Matches
Inheritance diagram for mrmeshpy.ConstLine2f:

Public Member Functions

Vector2f __call__ (self, float param)
 __init__ (self, *args, **kwargs)
Line2f __neg__ (self)
ConstLine2f __pos__ (self)
str __repr__ (self)
typing.Any __rlshift__ (self, typing.Any l)
float distanceSq (self, ConstVector2f x)
Line2f normalized (self)
Vector2f project (self, ConstVector2f x)
float projectionParam (self, ConstVector2f x)
ConstVector2f d (self)
ConstVector2f p (self)

Static Protected Attributes

typing _offsetof_d = 8
typing _offsetof_p = 0

Detailed Description

Generated from:  MR::Line2f

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

Constructor & Destructor Documentation

◆ __init__()

mrmeshpy.ConstLine2f.__init__ ( self,
* args,
** kwargs )
__init__(*args, **kwargs)
Overloaded function.

1. __init__(self: meshlib.mrmeshpy.ConstLine2f) -> None

2. __init__(self: meshlib.mrmeshpy.ConstLine2f, p: meshlib.mrmeshpy.ConstVector2f, d: meshlib.mrmeshpy.ConstVector2f) -> None

3. __init__(self: meshlib.mrmeshpy.ConstLine2f, arg0: meshlib.mrmeshpy.ConstLine2f) -> None

Implicit copy constructor.

4. __init__(self: meshlib.mrmeshpy.ConstLine2f, : meshlib.mrmeshpy.ConstLine2f) -> None

Member Function Documentation

◆ __call__()

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

◆ __neg__()

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

◆ __pos__()

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

◆ __repr__()

str mrmeshpy.ConstLine2f.__repr__ ( self)

◆ __rlshift__()

typing.Any mrmeshpy.ConstLine2f.__rlshift__ ( self,
typing.Any l )

◆ d()

ConstVector2f mrmeshpy.ConstLine2f.d ( self)

Reimplemented in mrmeshpy.Line2f, and mrmeshpy.Line2f.

◆ distanceSq()

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

◆ normalized()

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

◆ p()

ConstVector2f mrmeshpy.ConstLine2f.p ( self)

Reimplemented in mrmeshpy.Line2f, and mrmeshpy.Line2f.

◆ project()

Vector2f mrmeshpy.ConstLine2f.project ( self,
ConstVector2f x )
finds the closest point to the given one on this line

◆ projectionParam()

float mrmeshpy.ConstLine2f.projectionParam ( self,
ConstVector2f x )
finds the parameter of the closest point to the given one on this line

Member Data Documentation

◆ _offsetof_d

typing mrmeshpy.ConstLine2f._offsetof_d = 8
staticprotected

◆ _offsetof_p

typing mrmeshpy.ConstLine2f._offsetof_p = 0
staticprotected

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