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