PyHelios 0.1.11
Loading...
Searching...
No Matches
pyhelios.wrappers.DataTypes.vec3 Class Reference

Detailed Description

Definition at line 194 of file DataTypes.py.

+ Inheritance diagram for pyhelios.wrappers.DataTypes.vec3:
+ Collaboration diagram for pyhelios.wrappers.DataTypes.vec3:

Public Member Functions

str __repr__ (self)
 
str __str__ (self)
 
 __new__ (cls, x=None, y=None, z=None)
 Create only pass cls to prevent TypeError on Windows.
 
 __init__ (self, float x=0, float y=0, float z=0)
 
 from_list (self, List[float] input_list)
 
List[float] to_list (self)
 
tuple to_tuple (self)
 
float magnitude (self)
 Return the magnitude (length) of the vector.
 
'vec3normalize (self)
 Return a normalized copy of this vector (unit length).
 

Public Attributes

 x = float(x)
 
 y = float(y)
 
 z = float(z)
 

Static Protected Member Functions

bool _is_finite_numeric (value)
 Check if value is a finite number (not NaN or inf).
 

Static Protected Attributes

list _fields_
 

Constructor & Destructor Documentation

◆ __init__()

pyhelios.wrappers.DataTypes.vec3.__init__ ( self,
float x = 0,
float y = 0,
float z = 0 )

Definition at line 210 of file DataTypes.py.

Member Function Documentation

◆ __new__()

pyhelios.wrappers.DataTypes.vec3.__new__ ( cls,
x = None,
y = None,
z = None )

Create only pass cls to prevent TypeError on Windows.

Definition at line 207 of file DataTypes.py.

◆ __repr__()

str pyhelios.wrappers.DataTypes.vec3.__repr__ ( self)

Definition at line 200 of file DataTypes.py.

◆ __str__()

str pyhelios.wrappers.DataTypes.vec3.__str__ ( self)

Definition at line 203 of file DataTypes.py.

◆ _is_finite_numeric()

bool pyhelios.wrappers.DataTypes.vec3._is_finite_numeric ( value)
staticprotected

Check if value is a finite number (not NaN or inf).

Definition at line 253 of file DataTypes.py.

◆ from_list()

pyhelios.wrappers.DataTypes.vec3.from_list ( self,
List[float] input_list )

Definition at line 226 of file DataTypes.py.

◆ magnitude()

float pyhelios.wrappers.DataTypes.vec3.magnitude ( self)

Return the magnitude (length) of the vector.

Definition at line 238 of file DataTypes.py.

◆ normalize()

'vec3' pyhelios.wrappers.DataTypes.vec3.normalize ( self)

Return a normalized copy of this vector (unit length).

Definition at line 243 of file DataTypes.py.

◆ to_list()

List[float] pyhelios.wrappers.DataTypes.vec3.to_list ( self)

Definition at line 231 of file DataTypes.py.

◆ to_tuple()

tuple pyhelios.wrappers.DataTypes.vec3.to_tuple ( self)

Definition at line 234 of file DataTypes.py.

Member Data Documentation

◆ _fields_

list pyhelios.wrappers.DataTypes.vec3._fields_
staticprotected

Definition at line 198 of file DataTypes.py.

◆ x

pyhelios.wrappers.DataTypes.vec3.x = float(x)

Definition at line 222 of file DataTypes.py.

◆ y

pyhelios.wrappers.DataTypes.vec3.y = float(y)

Definition at line 223 of file DataTypes.py.

◆ z

pyhelios.wrappers.DataTypes.vec3.z = float(z)

Definition at line 224 of file DataTypes.py.


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