MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.Vector2b Class Reference

Public Member Functions

Vector2i __add__ (self, Vector2b b)
 
bool __eq__ (self, Vector2b b)
 
Vector2b __iadd__ (self, Vector2b b)
 
Vector2b __imatmul__ (self, bool b)
 
None __init__ (self)
 
None __init__ (self, bool x, bool y)
 
None __init__ (self, Vector3b v)
 
None __init__ (self, Vector2b v)
 
None __init__ (self, Vector2b arg0)
 
Vector2b __isub__ (self, Vector2b b)
 
typing.Iterator[bool] __iter__ (self)
 
Vector2b __itruediv__ (self, bool b)
 
Vector2i __mul__ (self, bool a)
 
bool __ne__ (self, Vector2b b)
 
Vector2i __neg__ (self)
 
Vector2b __pos__ (self)
 
str __repr__ (self)
 
Vector2i __rmul__ (self, bool b)
 
Vector2i __sub__ (self, Vector2b b)
 
Vector2i __truediv__ (self, bool a)
 
float length (self)
 
bool lengthSq (self)
 

Static Public Member Functions

None __init__ (*args, **kwargs)
 
Vector2b diagonal (bool a)
 
Vector2b minusX ()
 
Vector2b minusY ()
 
Vector2b plusX ()
 
Vector2b plusY ()
 

Static Public Attributes

typing elements = 2
 

Protected Member Functions

bool _Subscript (self, int e)
 
bool _Subscript (self, int e)
 

Detailed Description

Generated from:  MR::Vector2b
Aliases:  Box_Vector2d_Vb, Box_Vector2i_Vb, Box_Vector2f_Vb, Box_Vector2ll_Vb, Matrix2_bool_VectorType

two-dimensional vector
\\ingroup VectorGroup

Constructor & Destructor Documentation

◆ __init__() [1/6]

None mrmeshpy.Vector2b.__init__ ( * args,
** kwargs )
static

◆ __init__() [2/6]

None mrmeshpy.Vector2b.__init__ ( self)

◆ __init__() [3/6]

None mrmeshpy.Vector2b.__init__ ( self,
bool x,
bool y )

◆ __init__() [4/6]

None mrmeshpy.Vector2b.__init__ ( self,
Vector3b v )

◆ __init__() [5/6]

None mrmeshpy.Vector2b.__init__ ( self,
Vector2b v )

◆ __init__() [6/6]

None mrmeshpy.Vector2b.__init__ ( self,
Vector2b arg0 )
Implicit copy constructor.

Member Function Documentation

◆ __add__()

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

◆ __eq__()

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

◆ __iadd__()

Vector2b mrmeshpy.Vector2b.__iadd__ ( self,
Vector2b b )

◆ __imatmul__()

Vector2b mrmeshpy.Vector2b.__imatmul__ ( self,
bool b )

◆ __isub__()

Vector2b mrmeshpy.Vector2b.__isub__ ( self,
Vector2b b )

◆ __iter__()

typing.Iterator[bool] mrmeshpy.Vector2b.__iter__ ( self)

◆ __itruediv__()

Vector2b mrmeshpy.Vector2b.__itruediv__ ( self,
bool b )

◆ __mul__()

Vector2i mrmeshpy.Vector2b.__mul__ ( self,
bool a )

◆ __ne__()

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

◆ __neg__()

Vector2i mrmeshpy.Vector2b.__neg__ ( self)

◆ __pos__()

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

◆ __rmul__()

Vector2i mrmeshpy.Vector2b.__rmul__ ( self,
bool b )

◆ __sub__()

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

◆ __truediv__()

Vector2i mrmeshpy.Vector2b.__truediv__ ( self,
bool a )

◆ _Subscript() [1/2]

bool mrmeshpy.Vector2b._Subscript ( self,
int e )
protected

◆ _Subscript() [2/2]

bool mrmeshpy.Vector2b._Subscript ( self,
int e )
protected

◆ diagonal()

Vector2b mrmeshpy.Vector2b.diagonal ( bool a)
static

◆ length()

float mrmeshpy.Vector2b.length ( self)

◆ lengthSq()

bool mrmeshpy.Vector2b.lengthSq ( self)

◆ minusX()

Vector2b mrmeshpy.Vector2b.minusX ( )
static

◆ minusY()

Vector2b mrmeshpy.Vector2b.minusY ( )
static

◆ plusX()

Vector2b mrmeshpy.Vector2b.plusX ( )
static

◆ plusY()

Vector2b mrmeshpy.Vector2b.plusY ( )
static

Member Data Documentation

◆ elements

typing mrmeshpy.Vector2b.elements = 2
static

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