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

Public Member Functions

Vector2f __add__ (self, ConstVector2f b)
bool __eq__ (self, ConstVector2f b)
float __getitem__ (self, int e)
 __init__ (self, *args, **kwargs)
typing.Iterator[float] __iter__ (self)
Vector2f __mul__ (self, float a)
bool __ne__ (self, ConstVector2f b)
Vector2f __neg__ (self)
ConstVector2f __pos__ (self)
str __repr__ (self)
typing.Any __rlshift__ (self, typing.Any vec)
Vector2f __rmul__ (self, float b)
Vector2f __sub__ (self, ConstVector2f b)
Vector2f __truediv__ (self, float a)
Vector2f furthestBasisVector (self)
bool isFinite (self)
float length (self)
float lengthSq (self)
Vector2f normalized (self)
Vector2f perpendicular (self)
float x (self)
float y (self)

Static Public Member Functions

Vector2f diagonal (float a)
Vector2f minusX ()
Vector2f minusY ()
Vector2f plusX ()
Vector2f plusY ()

Static Public Attributes

typing elements = 2

Static Protected Attributes

typing _offsetof_x = 0
typing _offsetof_y = 4

Detailed Description

Generated from:  MR::Vector2f
Aliases:  Matrix2_float_VectorType, UVCoord, Vector_Vector2f_VertId_const_pointer, Vector_Vector2f_VertId_const_reference, Vector_Vector2f_VertId_pointer, Vector_Vector2f_VertId_reference, Vector_Vector2f_VertId_value_type

Constructor & Destructor Documentation

◆ __init__()

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

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

2. __init__(self: meshlib.mrmeshpy.ConstVector2f, : meshlib.mrmeshpy.ConstNoInit) -> None

3. __init__(self: meshlib.mrmeshpy.ConstVector2f, x: float, y: float) -> None

4. __init__(self: meshlib.mrmeshpy.ConstVector2f, arg0: meshlib.mrmeshpy.Vector2f) -> None

Implicit copy constructor.

5. __init__(self: meshlib.mrmeshpy.ConstVector2f, : meshlib.mrmeshpy.Vector2f) -> None

Member Function Documentation

◆ __add__()

Vector2f mrmeshpy.ConstVector2f.__add__ ( self,
ConstVector2f b )

◆ __eq__()

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

◆ __getitem__()

float mrmeshpy.ConstVector2f.__getitem__ ( self,
int e )

◆ __iter__()

typing.Iterator[float] mrmeshpy.ConstVector2f.__iter__ ( self)

◆ __mul__()

Vector2f mrmeshpy.ConstVector2f.__mul__ ( self,
float a )

◆ __ne__()

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

◆ __neg__()

Vector2f mrmeshpy.ConstVector2f.__neg__ ( self)

◆ __pos__()

ConstVector2f mrmeshpy.ConstVector2f.__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.ConstVector2f.__repr__ ( self)

◆ __rlshift__()

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

◆ __rmul__()

Vector2f mrmeshpy.ConstVector2f.__rmul__ ( self,
float b )

◆ __sub__()

Vector2f mrmeshpy.ConstVector2f.__sub__ ( self,
ConstVector2f b )

◆ __truediv__()

Vector2f mrmeshpy.ConstVector2f.__truediv__ ( self,
float a )

◆ diagonal()

Vector2f mrmeshpy.ConstVector2f.diagonal ( float a)
static

◆ furthestBasisVector()

Vector2f mrmeshpy.ConstVector2f.furthestBasisVector ( self)

◆ isFinite()

bool mrmeshpy.ConstVector2f.isFinite ( self)

◆ length()

float mrmeshpy.ConstVector2f.length ( self)

◆ lengthSq()

float mrmeshpy.ConstVector2f.lengthSq ( self)

◆ minusX()

Vector2f mrmeshpy.ConstVector2f.minusX ( )
static

◆ minusY()

Vector2f mrmeshpy.ConstVector2f.minusY ( )
static

◆ normalized()

Vector2f mrmeshpy.ConstVector2f.normalized ( self)

◆ perpendicular()

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

◆ plusX()

Vector2f mrmeshpy.ConstVector2f.plusX ( )
static

◆ plusY()

Vector2f mrmeshpy.ConstVector2f.plusY ( )
static

◆ x()

float mrmeshpy.ConstVector2f.x ( self)

◆ y()

float mrmeshpy.ConstVector2f.y ( self)

Member Data Documentation

◆ _offsetof_x

typing mrmeshpy.ConstVector2f._offsetof_x = 0
staticprotected

◆ _offsetof_y

typing mrmeshpy.ConstVector2f._offsetof_y = 4
staticprotected

◆ elements

typing mrmeshpy.ConstVector2f.elements = 2
static

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