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

Public Member Functions

Vector4d __add__ (self, Vector4d b)
 
bool __eq__ (self, Vector4d b)
 
Vector4d __iadd__ (self, Vector4d b)
 
Vector4d __imatmul__ (self, float b)
 
None __init__ (self)
 
None __init__ (self, float x, float y, float z, float w)
 
None __init__ (self, Vector4d v)
 
None __init__ (self, Vector4d arg0)
 
Vector4d __isub__ (self, Vector4d b)
 
typing.Iterator[float] __iter__ (self)
 
Vector4d __itruediv__ (self, float b)
 
Vector4d __mul__ (self, float a)
 
bool __ne__ (self, Vector4d b)
 
Vector4d __neg__ (self)
 
Vector4d __pos__ (self)
 
str __repr__ (self)
 
Vector4d __rmul__ (self, float b)
 
Vector4d __sub__ (self, Vector4d b)
 
Vector4d __truediv__ (self, float a)
 
bool isFinite (self)
 
float length (self)
 
float lengthSq (self)
 
Vector4d normalized (self)
 
Vector3d proj3d (self)
 

Static Public Member Functions

None __init__ (*args, **kwargs)
 
Vector4d diagonal (float a)
 

Static Public Attributes

typing elements = 4
 

Protected Member Functions

float _Subscript (self, int e)
 
float _Subscript (self, int e)
 

Detailed Description

Generated from:  MR::Vector4d
Aliases:  Matrix4_double_VectorType

four-dimensional vector
\\ingroup VectorGroup

Constructor & Destructor Documentation

◆ __init__() [1/5]

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

◆ __init__() [2/5]

None mrmeshpy.Vector4d.__init__ ( self)

◆ __init__() [3/5]

None mrmeshpy.Vector4d.__init__ ( self,
float x,
float y,
float z,
float w )

◆ __init__() [4/5]

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

◆ __init__() [5/5]

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

Member Function Documentation

◆ __add__()

Vector4d mrmeshpy.Vector4d.__add__ ( self,
Vector4d b )

◆ __eq__()

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

◆ __iadd__()

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

◆ __imatmul__()

Vector4d mrmeshpy.Vector4d.__imatmul__ ( self,
float b )

◆ __isub__()

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

◆ __iter__()

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

◆ __itruediv__()

Vector4d mrmeshpy.Vector4d.__itruediv__ ( self,
float b )

◆ __mul__()

Vector4d mrmeshpy.Vector4d.__mul__ ( self,
float a )

◆ __ne__()

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

◆ __neg__()

Vector4d mrmeshpy.Vector4d.__neg__ ( self)

◆ __pos__()

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

◆ __rmul__()

Vector4d mrmeshpy.Vector4d.__rmul__ ( self,
float b )

◆ __sub__()

Vector4d mrmeshpy.Vector4d.__sub__ ( self,
Vector4d b )

◆ __truediv__()

Vector4d mrmeshpy.Vector4d.__truediv__ ( self,
float a )

◆ _Subscript() [1/2]

float mrmeshpy.Vector4d._Subscript ( self,
int e )
protected

◆ _Subscript() [2/2]

float mrmeshpy.Vector4d._Subscript ( self,
int e )
protected

◆ diagonal()

Vector4d mrmeshpy.Vector4d.diagonal ( float a)
static

◆ isFinite()

bool mrmeshpy.Vector4d.isFinite ( self)

◆ length()

float mrmeshpy.Vector4d.length ( self)

◆ lengthSq()

float mrmeshpy.Vector4d.lengthSq ( self)

◆ normalized()

Vector4d mrmeshpy.Vector4d.normalized ( self)

◆ proj3d()

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

Member Data Documentation

◆ elements

typing mrmeshpy.Vector4d.elements = 4
static

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