Types¶
- class huira.Vec3¶
3-component vector (double precision)
- __init__(*args, **kwargs)¶
Overloaded function.
__init__(self: huira._huira.Vec3) -> None
__init__(self: huira._huira.Vec3, x: float, y: float, z: float) -> None
__init__(self: huira._huira.Vec3, array: numpy.ndarray[numpy.float64]) -> None
Construct from a numpy array of length 3
- to_numpy(self: huira._huira.Vec3) numpy.ndarray[numpy.float64]¶
Return a numpy array [x, y, z]
- property x¶
- property y¶
- property z¶
- class huira.Mat3¶
3x3 matrix (double precision, column-major / GLM layout)
- __init__(*args, **kwargs)¶
Overloaded function.
__init__(self: huira._huira.Mat3) -> None
__init__(self: huira._huira.Mat3, diagonal: float) -> None
Construct a diagonal matrix with the given value
__init__(self: huira._huira.Mat3, array: numpy.ndarray[numpy.float64]) -> None
Construct from a 3x3 numpy array (row-major)
- to_numpy(self: huira._huira.Mat3) numpy.ndarray[numpy.float64]¶
Return a 3x3 numpy array (row-major)
- class huira.Quaternion¶
Hamilton quaternion (w, x, y, z) – double precision
- __init__(*args, **kwargs)¶
Overloaded function.
__init__(self: huira._huira.Quaternion) -> None
__init__(self: huira._huira.Quaternion, w: float, x: float, y: float, z: float) -> None
__init__(self: huira._huira.Quaternion, array: numpy.ndarray[numpy.float64]) -> None
Construct from numpy array [w, x, y, z]
- to_numpy(self: huira._huira.Quaternion) numpy.ndarray[numpy.float64]¶
Return numpy array [w, x, y, z]
- property w¶
- property x¶
- property y¶
- property z¶
- class huira.ShusterQuaternion¶
Shuster (aerospace) quaternion (x, y, z, w) – double precision
- __init__(*args, **kwargs)¶
Overloaded function.
__init__(self: huira._huira.ShusterQuaternion) -> None
__init__(self: huira._huira.ShusterQuaternion, x: float, y: float, z: float, w: float) -> None
__init__(self: huira._huira.ShusterQuaternion, array: numpy.ndarray[numpy.float64]) -> None
Construct from numpy array [x, y, z, w]
- to_numpy(self: huira._huira.ShusterQuaternion) numpy.ndarray[numpy.float64]¶
Return numpy array [x, y, z, w]
- property w¶
- property x¶
- property y¶
- property z¶
- huira.to_shuster(quaternion: huira._huira.Quaternion) huira._huira.ShusterQuaternion¶
Convert a Hamilton quaternion to a Shuster quaternion
- huira.to_hamilton(shuster_quaternion: huira._huira.ShusterQuaternion) huira._huira.Quaternion¶
Convert a Shuster quaternion to a Hamilton quaternion