class
MatrixBuilderContents
Utility to build matrices for 3D transformations in homogeneous coordinate space
Constructors, destructors, conversion operators
Public functions
- auto Translate(const Vector3<T>& translation) -> MatrixBuilder& noexcept
- auto Scale(const Vector3<T>& scale) -> MatrixBuilder& noexcept
- auto ShearX(const Vector3<T>& shear) -> MatrixBuilder& noexcept
- auto ShearY(const Vector3<T>& shear) -> MatrixBuilder& noexcept
- auto ShearZ(const Vector3<T>& shear) -> MatrixBuilder& noexcept
- auto Rotate(const Vector3<T>& axis, T angle) -> MatrixBuilder& noexcept
- auto Rotate(const Quaternion<T>& quat) -> MatrixBuilder& noexcept
- auto Build() const -> Matrix4<T> noexcept
Function documentation
bpf:: math:: Transform3:: MatrixBuilder:: MatrixBuilder()
Constructs a MatrixBuilder from identity transform
MatrixBuilder& bpf:: math:: Transform3:: MatrixBuilder:: Translate(const Vector3<T>& translation) noexcept
Parameters | |
---|---|
translation | new translation vector |
Returns | reference for chaining |
Push a new translation to the current matrix
MatrixBuilder& bpf:: math:: Transform3:: MatrixBuilder:: Scale(const Vector3<T>& scale) noexcept
Parameters | |
---|---|
scale | new scale vector |
Returns | reference for chaining |
Push a new scale to the current matrix
MatrixBuilder& bpf:: math:: Transform3:: MatrixBuilder:: ShearX(const Vector3<T>& shear) noexcept
Parameters | |
---|---|
shear | shear value |
Returns | reference for chaining |
Push a new shear to the current matrix
MatrixBuilder& bpf:: math:: Transform3:: MatrixBuilder:: ShearY(const Vector3<T>& shear) noexcept
Parameters | |
---|---|
shear | shear value |
Returns | reference for chaining |
Push a new shear to the current matrix
MatrixBuilder& bpf:: math:: Transform3:: MatrixBuilder:: ShearZ(const Vector3<T>& shear) noexcept
Parameters | |
---|---|
shear | shear value |
Returns | reference for chaining |
Push a new shear to the current matrix
MatrixBuilder& bpf:: math:: Transform3:: MatrixBuilder:: Rotate(const Vector3<T>& axis,
T angle) noexcept
Parameters | |
---|---|
axis | rotation axis |
angle | angle in radians |
Returns | reference for chaining |
Push a new rotation to the current matrix
MatrixBuilder& bpf:: math:: Transform3:: MatrixBuilder:: Rotate(const Quaternion<T>& quat) noexcept
Parameters | |
---|---|
quat | unit quaternion |
Returns | reference for chaining |
Push a new rotation to the current matrix