Public Member Functions | |
| Vector2d | __add__ (self, ConstVector2d b) |
| bool | __eq__ (self, ConstVector2d b) |
| float | __getitem__ (self, int e) |
| __init__ (self, *args, **kwargs) | |
| typing.Iterator[float] | __iter__ (self) |
| Vector2d | __mul__ (self, float a) |
| bool | __ne__ (self, ConstVector2d b) |
| Vector2d | __neg__ (self) |
| ConstVector2d | __pos__ (self) |
| str | __repr__ (self) |
| typing.Any | __rlshift__ (self, typing.Any vec) |
| Vector2d | __rmul__ (self, float b) |
| Vector2d | __sub__ (self, ConstVector2d b) |
| Vector2d | __truediv__ (self, float a) |
| Vector2d | furthestBasisVector (self) |
| bool | isFinite (self) |
| float | length (self) |
| float | lengthSq (self) |
| Vector2d | normalized (self) |
| Vector2d | perpendicular (self) |
| float | x (self) |
| float | y (self) |
Static Public Member Functions | |
| Vector2d | diagonal (float a) |
| Vector2d | minusX () |
| Vector2d | minusY () |
| Vector2d | plusX () |
| Vector2d | plusY () |
Static Public Attributes | |
| typing | elements = 2 |
Static Protected Attributes | |
| typing | _offsetof_x = 0 |
| typing | _offsetof_y = 8 |
Generated from: MR::Vector2d Aliases: Matrix2_double_VectorType, Vector_Vector2d_VertId.const_pointer, Vector_Vector2d_VertId.const_reference, Vector_Vector2d_VertId.pointer, Vector_Vector2d_VertId.reference, Vector_Vector2d_VertId.value_type
| mrmeshpy.ConstVector2d.__init__ | ( | self, | |
| * | args, | ||
| ** | kwargs ) |
__init__(*args, **kwargs) Overloaded function. 1. __init__(self: meshlib.mrmeshpy.ConstVector2d) -> None 2. __init__(self: meshlib.mrmeshpy.ConstVector2d, : meshlib.mrmeshpy.ConstNoInit) -> None 3. __init__(self: meshlib.mrmeshpy.ConstVector2d, x: float, y: float) -> None 4. __init__(self: meshlib.mrmeshpy.ConstVector2d, arg0: meshlib.mrmeshpy.Vector2d) -> None Implicit copy constructor. 5. __init__(self: meshlib.mrmeshpy.ConstVector2d, : meshlib.mrmeshpy.Vector2d) -> None
| Vector2d mrmeshpy.ConstVector2d.__add__ | ( | self, | |
| ConstVector2d | b ) |
| bool mrmeshpy.ConstVector2d.__eq__ | ( | self, | |
| ConstVector2d | b ) |
| float mrmeshpy.ConstVector2d.__getitem__ | ( | self, | |
| int | e ) |
| typing.Iterator[float] mrmeshpy.ConstVector2d.__iter__ | ( | self | ) |
| Vector2d mrmeshpy.ConstVector2d.__mul__ | ( | self, | |
| float | a ) |
| bool mrmeshpy.ConstVector2d.__ne__ | ( | self, | |
| ConstVector2d | b ) |
| Vector2d mrmeshpy.ConstVector2d.__neg__ | ( | self | ) |
| ConstVector2d mrmeshpy.ConstVector2d.__pos__ | ( | self | ) |
NOTE: We use `std::declval()` in the operators below because libclang 18 in our binding generator is bugged and chokes on decltyping `a.x` and such. TODO fix this when we update libclang.
| str mrmeshpy.ConstVector2d.__repr__ | ( | self | ) |
| typing.Any mrmeshpy.ConstVector2d.__rlshift__ | ( | self, | |
| typing.Any | vec ) |
| Vector2d mrmeshpy.ConstVector2d.__rmul__ | ( | self, | |
| float | b ) |
| Vector2d mrmeshpy.ConstVector2d.__sub__ | ( | self, | |
| ConstVector2d | b ) |
| Vector2d mrmeshpy.ConstVector2d.__truediv__ | ( | self, | |
| float | a ) |
|
static |
| Vector2d mrmeshpy.ConstVector2d.furthestBasisVector | ( | self | ) |
| bool mrmeshpy.ConstVector2d.isFinite | ( | self | ) |
| float mrmeshpy.ConstVector2d.length | ( | self | ) |
| float mrmeshpy.ConstVector2d.lengthSq | ( | self | ) |
|
static |
|
static |
| Vector2d mrmeshpy.ConstVector2d.normalized | ( | self | ) |
| Vector2d mrmeshpy.ConstVector2d.perpendicular | ( | self | ) |
returns same length vector orthogonal to this (rotated 90 degrees counter-clockwise)
|
static |
|
static |
| float mrmeshpy.ConstVector2d.x | ( | self | ) |
| float mrmeshpy.ConstVector2d.y | ( | self | ) |
|
staticprotected |
|
staticprotected |
|
static |