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

Public Member Functions

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

Static Protected Attributes

typing _offsetof_a = 0
typing _offsetof_b = 16

Detailed Description

Generated from:  MR::LineSegm2d

a segment of straight dimensional line

Constructor & Destructor Documentation

◆ __init__()

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

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

2. __init__(self: meshlib.mrmeshpy.ConstLineSegm2d, a: meshlib.mrmeshpy.ConstVector2d, b: meshlib.mrmeshpy.ConstVector2d) -> None

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

Implicit copy constructor.

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

Member Function Documentation

◆ __call__()

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

◆ a()

ConstVector2d mrmeshpy.ConstLineSegm2d.a ( self)

Reimplemented in mrmeshpy.LineSegm2d, and mrmeshpy.LineSegm2d.

◆ b()

ConstVector2d mrmeshpy.ConstLineSegm2d.b ( self)

Reimplemented in mrmeshpy.LineSegm2d, and mrmeshpy.LineSegm2d.

◆ dir()

Vector2d mrmeshpy.ConstLineSegm2d.dir ( self)
returns directional vector of the line

◆ length()

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

◆ lengthSq()

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

Member Data Documentation

◆ _offsetof_a

typing mrmeshpy.ConstLineSegm2d._offsetof_a = 0
staticprotected

◆ _offsetof_b

typing mrmeshpy.ConstLineSegm2d._offsetof_b = 16
staticprotected

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