Definition at line 194 of file DataTypes.py.
|
| 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.
|
| |
| 'vec3' | normalize (self) |
| | Return a normalized copy of this vector (unit length).
|
| |
|
| | x = float(x) |
| |
| | y = float(y) |
| |
| | z = float(z) |
| |
◆ __init__()
| pyhelios.wrappers.DataTypes.vec3.__init__ |
( |
| self, |
|
|
float | x = 0, |
|
|
float | y = 0, |
|
|
float | z = 0 ) |
◆ __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 | ) |
|
◆ __str__()
| str pyhelios.wrappers.DataTypes.vec3.__str__ |
( |
| self | ) |
|
◆ _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 ) |
◆ 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 | ) |
|
◆ to_tuple()
| tuple pyhelios.wrappers.DataTypes.vec3.to_tuple |
( |
| self | ) |
|
◆ _fields_
| list pyhelios.wrappers.DataTypes.vec3._fields_ |
|
staticprotected |
| pyhelios.wrappers.DataTypes.vec3.x = float(x) |
| pyhelios.wrappers.DataTypes.vec3.y = float(y) |
| pyhelios.wrappers.DataTypes.vec3.z = float(z) |
The documentation for this class was generated from the following file: