Public Member Functions | |
| Vector2d | __call__ (self, float param) |
| __init__ (self, *args, **kwargs) | |
| Line2d | __neg__ (self) |
| ConstLine2d | __pos__ (self) |
| str | __repr__ (self) |
| typing.Any | __rlshift__ (self, typing.Any l) |
| float | distanceSq (self, ConstVector2d x) |
| Line2d | normalized (self) |
| Vector2d | project (self, ConstVector2d x) |
| float | projectionParam (self, ConstVector2d x) |
| ConstVector2d | d (self) |
| ConstVector2d | p (self) |
Static Protected Attributes | |
| typing | _offsetof_d = 16 |
| typing | _offsetof_p = 0 |
Generated from: MR::Line2d 2- or 3-dimensional line: cross( x - p, d ) = 0
| mrmeshpy.ConstLine2d.__init__ | ( | self, | |
| * | args, | ||
| ** | kwargs ) |
__init__(*args, **kwargs) Overloaded function. 1. __init__(self: meshlib.mrmeshpy.ConstLine2d) -> None 2. __init__(self: meshlib.mrmeshpy.ConstLine2d, p: meshlib.mrmeshpy.ConstVector2d, d: meshlib.mrmeshpy.ConstVector2d) -> None 3. __init__(self: meshlib.mrmeshpy.ConstLine2d, arg0: meshlib.mrmeshpy.ConstLine2d) -> None Implicit copy constructor. 4. __init__(self: meshlib.mrmeshpy.ConstLine2d, : meshlib.mrmeshpy.ConstLine2d) -> None
| Vector2d mrmeshpy.ConstLine2d.__call__ | ( | self, | |
| float | param ) |
returns point on the line, where param=0 returns p and param=1 returns p+d
| Line2d mrmeshpy.ConstLine2d.__neg__ | ( | self | ) |
returns same line represented with flipped direction of d-vector
| ConstLine2d mrmeshpy.ConstLine2d.__pos__ | ( | self | ) |
returns same representation
| str mrmeshpy.ConstLine2d.__repr__ | ( | self | ) |
| typing.Any mrmeshpy.ConstLine2d.__rlshift__ | ( | self, | |
| typing.Any | l ) |
| ConstVector2d mrmeshpy.ConstLine2d.d | ( | self | ) |
Reimplemented in mrmeshpy.Line2d, and mrmeshpy.Line2d.
| float mrmeshpy.ConstLine2d.distanceSq | ( | self, | |
| ConstVector2d | x ) |
returns squared distance from given point to this line
| Line2d mrmeshpy.ConstLine2d.normalized | ( | self | ) |
returns same line represented with unit d-vector
| ConstVector2d mrmeshpy.ConstLine2d.p | ( | self | ) |
Reimplemented in mrmeshpy.Line2d, and mrmeshpy.Line2d.
| Vector2d mrmeshpy.ConstLine2d.project | ( | self, | |
| ConstVector2d | x ) |
finds the closest point to the given one on this line
| float mrmeshpy.ConstLine2d.projectionParam | ( | self, | |
| ConstVector2d | x ) |
finds the parameter of the closest point to the given one on this line
|
staticprotected |
|
staticprotected |