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

Public Member Functions

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

Static Public Member Functions

Vector4f diagonal (float a)

Static Public Attributes

typing elements = 4

Static Protected Attributes

typing _offsetof_w = 12
typing _offsetof_x = 0
typing _offsetof_y = 4
typing _offsetof_z = 8

Detailed Description

Generated from:  MR::Vector4f
Aliases:  Matrix4_float_VectorType

four-dimensional vector

Constructor & Destructor Documentation

◆ __init__()

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

1. __init__(self: meshlib.mrmeshpy.ConstVector4f, arg0: meshlib.mrmeshpy.ConstColor) -> None

2. __init__(self: meshlib.mrmeshpy.ConstVector4f) -> None

3. __init__(self: meshlib.mrmeshpy.ConstVector4f, : meshlib.mrmeshpy.ConstNoInit) -> None

4. __init__(self: meshlib.mrmeshpy.ConstVector4f, x: float, y: float, z: float, w: float) -> None

5. __init__(self: meshlib.mrmeshpy.ConstVector4f, arg0: meshlib.mrmeshpy.Vector4f) -> None

Implicit copy constructor.

6. __init__(self: meshlib.mrmeshpy.ConstVector4f, : meshlib.mrmeshpy.Vector4f) -> None

Member Function Documentation

◆ __add__()

Vector4f mrmeshpy.ConstVector4f.__add__ ( self,
ConstVector4f b )

◆ __eq__()

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

◆ __getitem__()

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

◆ __iter__()

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

◆ __mul__()

Vector4f mrmeshpy.ConstVector4f.__mul__ ( self,
float a )

◆ __ne__()

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

◆ __neg__()

Vector4f mrmeshpy.ConstVector4f.__neg__ ( self)

◆ __pos__()

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

◆ __rlshift__()

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

◆ __rmul__()

Vector4f mrmeshpy.ConstVector4f.__rmul__ ( self,
float b )

◆ __sub__()

Vector4f mrmeshpy.ConstVector4f.__sub__ ( self,
ConstVector4f b )

◆ __truediv__()

Vector4f mrmeshpy.ConstVector4f.__truediv__ ( self,
float a )

◆ diagonal()

Vector4f mrmeshpy.ConstVector4f.diagonal ( float a)
static

◆ isFinite()

bool mrmeshpy.ConstVector4f.isFinite ( self)

◆ length()

float mrmeshpy.ConstVector4f.length ( self)

◆ lengthSq()

float mrmeshpy.ConstVector4f.lengthSq ( self)

◆ normalized()

Vector4f mrmeshpy.ConstVector4f.normalized ( self)

◆ proj3d()

Vector3f mrmeshpy.ConstVector4f.proj3d ( self)
assuming this is a point represented in homogeneous 4D coordinates, returns the point as 3D-vector

◆ w()

float mrmeshpy.ConstVector4f.w ( self)

◆ x()

float mrmeshpy.ConstVector4f.x ( self)

◆ y()

float mrmeshpy.ConstVector4f.y ( self)

◆ z()

float mrmeshpy.ConstVector4f.z ( self)

Member Data Documentation

◆ _offsetof_w

typing mrmeshpy.ConstVector4f._offsetof_w = 12
staticprotected

◆ _offsetof_x

typing mrmeshpy.ConstVector4f._offsetof_x = 0
staticprotected

◆ _offsetof_y

typing mrmeshpy.ConstVector4f._offsetof_y = 4
staticprotected

◆ _offsetof_z

typing mrmeshpy.ConstVector4f._offsetof_z = 8
staticprotected

◆ elements

typing mrmeshpy.ConstVector4f.elements = 4
static

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