Skip to content

RotationAngles

Implementation of the model angles class

RotationAngles

Canonical path: StdReinfShapeBuilder.RotationAngles.RotationAngles

Class describing the rotation of a geometrical object around the three axes (X,Y,Z) in order to transform it from local to global coordinate system or the other way around.

Often used in context of transforming a bending shape (rebar or mesh).

angle_x property

angle_x: float

Rotation angle around the X axis (in degrees)

angle_y property

angle_y: float

Rotation angle around the Y axis (in degrees)

angle_z property

angle_z: float

Rotation angle around the Z axis (in degrees)

__init__

__init__(angle_x: float, angle_y: float, angle_z: float)

Construct the object by setting all three angles. The angles are given in degrees.

Parameters:

  • angle_x (float) –

    Rotation angle (degree) around the local x axis

  • angle_y (float) –

    Rotation angle (degree) around the local y axis

  • angle_z (float) –

    Rotation angle (degree) around the local z axis

__repr__

__repr__() -> str

Create a string from the object data

Returns:

  • str

    string with the object data

change_rotation

change_rotation() -> RotationAngles

Inverse rotation direction

Returns:

  • RotationAngles

    RotationAngles with the inverted rotation direction

get_rotation_matrix

get_rotation_matrix() -> Matrix3D

Get a 3D transformation matrix (4x4) describing the rotation around the origin (0,0,0).

Returns:

  • Matrix3D

    Transformation matrix describing the rotation

Placeholder