Public Member Functions | |
| Vector2i | __add__ (self, ConstVector2i b) |
| bool | __eq__ (self, ConstVector2i b) |
| int | __getitem__ (self, int e) |
| __init__ (self, *args, **kwargs) | |
| typing.Iterator[int] | __iter__ (self) |
| Vector2i | __mul__ (self, int a) |
| bool | __ne__ (self, ConstVector2i b) |
| Vector2i | __neg__ (self) |
| ConstVector2i | __pos__ (self) |
| str | __repr__ (self) |
| typing.Any | __rlshift__ (self, typing.Any vec) |
| Vector2i | __rmul__ (self, int b) |
| Vector2i | __sub__ (self, ConstVector2i b) |
| Vector2i | __truediv__ (self, int a) |
| Vector2i | furthestBasisVector (self) |
| float | length (self) |
| int | lengthSq (self) |
| Vector2i | perpendicular (self) |
| int | x (self) |
| int | y (self) |
Static Public Member Functions | |
| Vector2i | diagonal (int a) |
| Vector2i | minusX () |
| Vector2i | minusY () |
| Vector2i | plusX () |
| Vector2i | plusY () |
Static Public Attributes | |
| typing | elements = 2 |
Static Protected Attributes | |
| typing | _offsetof_x = 0 |
| typing | _offsetof_y = 4 |
Generated from: MR::Vector2i Aliases: Matrix2_int_VectorType
| mrmeshpy.ConstVector2i.__init__ | ( | self, | |
| * | args, | ||
| ** | kwargs ) |
__init__(*args, **kwargs) Overloaded function. 1. __init__(self: meshlib.mrmeshpy.ConstVector2i) -> None 2. __init__(self: meshlib.mrmeshpy.ConstVector2i, : meshlib.mrmeshpy.ConstNoInit) -> None 3. __init__(self: meshlib.mrmeshpy.ConstVector2i, x: int, y: int) -> None 4. __init__(self: meshlib.mrmeshpy.ConstVector2i, arg0: meshlib.mrmeshpy.Vector2i) -> None Implicit copy constructor. 5. __init__(self: meshlib.mrmeshpy.ConstVector2i, : meshlib.mrmeshpy.Vector2i) -> None
| Vector2i mrmeshpy.ConstVector2i.__add__ | ( | self, | |
| ConstVector2i | b ) |
| bool mrmeshpy.ConstVector2i.__eq__ | ( | self, | |
| ConstVector2i | b ) |
| int mrmeshpy.ConstVector2i.__getitem__ | ( | self, | |
| int | e ) |
| typing.Iterator[int] mrmeshpy.ConstVector2i.__iter__ | ( | self | ) |
| Vector2i mrmeshpy.ConstVector2i.__mul__ | ( | self, | |
| int | a ) |
| bool mrmeshpy.ConstVector2i.__ne__ | ( | self, | |
| ConstVector2i | b ) |
| Vector2i mrmeshpy.ConstVector2i.__neg__ | ( | self | ) |
| ConstVector2i mrmeshpy.ConstVector2i.__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.ConstVector2i.__repr__ | ( | self | ) |
| typing.Any mrmeshpy.ConstVector2i.__rlshift__ | ( | self, | |
| typing.Any | vec ) |
| Vector2i mrmeshpy.ConstVector2i.__rmul__ | ( | self, | |
| int | b ) |
| Vector2i mrmeshpy.ConstVector2i.__sub__ | ( | self, | |
| ConstVector2i | b ) |
| Vector2i mrmeshpy.ConstVector2i.__truediv__ | ( | self, | |
| int | a ) |
|
static |
| Vector2i mrmeshpy.ConstVector2i.furthestBasisVector | ( | self | ) |
| float mrmeshpy.ConstVector2i.length | ( | self | ) |
| int mrmeshpy.ConstVector2i.lengthSq | ( | self | ) |
|
static |
|
static |
| Vector2i mrmeshpy.ConstVector2i.perpendicular | ( | self | ) |
returns same length vector orthogonal to this (rotated 90 degrees counter-clockwise)
|
static |
|
static |
| int mrmeshpy.ConstVector2i.x | ( | self | ) |
| int mrmeshpy.ConstVector2i.y | ( | self | ) |
|
staticprotected |
|
staticprotected |
|
static |