Transforms
Description
Helper class for dealing with Transform values.
Public / Methods
Combine
Solves an equation for transform concatenation.
Given the following transform concatenation
result = first * second
this method computes result
from the given values for first
and second
.
FlipY
Returns the transforms that corresponds to the given one in a coordinate system with a flipped Y-axis.
FromMatrix
Returns the transform that corresponds to the given matrix.
The input matrix has the following form:
/ \ | S(m11) S(m12) | | S(m21) S(m22) | \ /
where S(x)
refers to the Maths.Sign1 function.
SolveLeft
Solves an equation for transform concatenation.
Given the following transform concatenation
result = first * second
this method computes first
from the given values for second
and result
.
SolveRight
Solves an equation for transform concatenation.
Given the following transform concatenation
result = first * second
this method computes second
from the given values for first
and result
.
ToMat2D
Converts the given 2D transform into a matrix, assuming that the coordinate origin is at (0|0)
.