class documentation

class Orientation:

View In Hierarchy

Angular orientation defined by A=roll (X), B=pitch (Y), C=yaw (Z).

The rotations are applied as intrinsic z-y'-x'' (yaw, then pitch, then roll), which is equivalent to extrinsic x-y-z.

see https://reference.opcfoundation.org/specs/OPC-10000-210/b-2

Method __post_init__ Verify unit post initialization.
Method as_tuple Return (a, b, c) in this orientation's unit.
Method is_close Approximate equality of the rotation, regardless of Euler representation.
Method to Convert this orientation to one with given unit.
Class Variable a Rotation around x axis (roll)
Class Variable b Rotation around y axis (pitch)
Class Variable c Rotation around z axis (yaw)
def __post_init__(self):

Verify unit post initialization.

def as_tuple(self) -> tuple[float, float, float]:

Return (a, b, c) in this orientation's unit.

def is_close(self, other: Orientation, *, abs_tol: float = 1e-09) -> bool:

Approximate equality of the rotation, regardless of Euler representation.

def to(self, unit: Unit) -> Orientation:

Convert this orientation to one with given unit.

a: float =

Rotation around x axis (roll)

b: float =

Rotation around y axis (pitch)

c: float =

Rotation around z axis (yaw)