MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.ConstLineSegm2f Class Reference
Inheritance diagram for mrmeshpy.ConstLineSegm2f:

Public Member Functions

Vector2f __call__ (self, float param)
 __init__ (self, *args, **kwargs)
Vector2f dir (self)
float length (self)
float lengthSq (self)
ConstVector2f a (self)
ConstVector2f b (self)

Static Protected Attributes

typing _offsetof_a = 0
typing _offsetof_b = 8

Detailed Description

Generated from:  MR::LineSegm2f

a segment of straight dimensional line

Constructor & Destructor Documentation

◆ __init__()

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

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

2. __init__(self: meshlib.mrmeshpy.ConstLineSegm2f, a: meshlib.mrmeshpy.ConstVector2f, b: meshlib.mrmeshpy.ConstVector2f) -> None

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

Implicit copy constructor.

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

Member Function Documentation

◆ __call__()

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

◆ a()

ConstVector2f mrmeshpy.ConstLineSegm2f.a ( self)

Reimplemented in mrmeshpy.LineSegm2f, and mrmeshpy.LineSegm2f.

◆ b()

ConstVector2f mrmeshpy.ConstLineSegm2f.b ( self)

Reimplemented in mrmeshpy.LineSegm2f, and mrmeshpy.LineSegm2f.

◆ dir()

Vector2f mrmeshpy.ConstLineSegm2f.dir ( self)
returns directional vector of the line

◆ length()

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

◆ lengthSq()

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

Member Data Documentation

◆ _offsetof_a

typing mrmeshpy.ConstLineSegm2f._offsetof_a = 0
staticprotected

◆ _offsetof_b

typing mrmeshpy.ConstLineSegm2f._offsetof_b = 8
staticprotected

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