MeshLib Python Docs
Loading...
Searching...
No Matches
Inheritance diagram for mrmeshpy.ConstVector2i:

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

Detailed Description

Generated from:  MR::Vector2i
Aliases:  Matrix2_int_VectorType

Constructor & Destructor Documentation

◆ __init__()

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

Member Function Documentation

◆ __add__()

Vector2i mrmeshpy.ConstVector2i.__add__ ( self,
ConstVector2i b )

◆ __eq__()

bool mrmeshpy.ConstVector2i.__eq__ ( self,
ConstVector2i b )

◆ __getitem__()

int mrmeshpy.ConstVector2i.__getitem__ ( self,
int e )

◆ __iter__()

typing.Iterator[int] mrmeshpy.ConstVector2i.__iter__ ( self)

◆ __mul__()

Vector2i mrmeshpy.ConstVector2i.__mul__ ( self,
int a )

◆ __ne__()

bool mrmeshpy.ConstVector2i.__ne__ ( self,
ConstVector2i b )

◆ __neg__()

Vector2i mrmeshpy.ConstVector2i.__neg__ ( self)

◆ __pos__()

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.

◆ __repr__()

str mrmeshpy.ConstVector2i.__repr__ ( self)

◆ __rlshift__()

typing.Any mrmeshpy.ConstVector2i.__rlshift__ ( self,
typing.Any vec )

◆ __rmul__()

Vector2i mrmeshpy.ConstVector2i.__rmul__ ( self,
int b )

◆ __sub__()

Vector2i mrmeshpy.ConstVector2i.__sub__ ( self,
ConstVector2i b )

◆ __truediv__()

Vector2i mrmeshpy.ConstVector2i.__truediv__ ( self,
int a )

◆ diagonal()

Vector2i mrmeshpy.ConstVector2i.diagonal ( int a)
static

◆ furthestBasisVector()

Vector2i mrmeshpy.ConstVector2i.furthestBasisVector ( self)

◆ length()

float mrmeshpy.ConstVector2i.length ( self)

◆ lengthSq()

int mrmeshpy.ConstVector2i.lengthSq ( self)

◆ minusX()

Vector2i mrmeshpy.ConstVector2i.minusX ( )
static

◆ minusY()

Vector2i mrmeshpy.ConstVector2i.minusY ( )
static

◆ perpendicular()

Vector2i mrmeshpy.ConstVector2i.perpendicular ( self)
returns same length vector orthogonal to this (rotated 90 degrees counter-clockwise)

◆ plusX()

Vector2i mrmeshpy.ConstVector2i.plusX ( )
static

◆ plusY()

Vector2i mrmeshpy.ConstVector2i.plusY ( )
static

◆ x()

int mrmeshpy.ConstVector2i.x ( self)

◆ y()

int mrmeshpy.ConstVector2i.y ( self)

Member Data Documentation

◆ _offsetof_x

typing mrmeshpy.ConstVector2i._offsetof_x = 0
staticprotected

◆ _offsetof_y

typing mrmeshpy.ConstVector2i._offsetof_y = 4
staticprotected

◆ elements

typing mrmeshpy.ConstVector2i.elements = 2
static

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