Epsilon
constant was renamed to Tolerance
.Following functions and objects should be used from new location(and some of them with slightly different names):
graphics::TMatrix
is now math::TTensor
.math::TTensor<float, 4, 4> m;
is a 4x4 matrix.
graphics::TVector
is now math::TTensor
.math::TTensor<float, 4> v{ 0, 0, 0, 1 };
is an initialized 4D vector.
graphics::TPlane
is now math::TPlane
.graphics::TPoint
is now math::TPoint
.graphics::TRect
is now math::TRect
.graphics::Sign
is now math::Sign
.graphics::Swap
is now math::Swap
.graphics::Min
is now math::Min
.graphics::Max
is now math::Max
.graphics::Round
is now math::Round
.isEqual
is now IsEqaul
.isUnequal
is now IsNotEqual
.isLess
is now IsLess
.isLessOrEqual
is now IsLessOrEqual
.isGreater
is now IsGreater
.isGreaterOrEqual
is now IsGreaterOrEqual
.graphics::TVector
and graphics::TMatrix
template methods are now standalone functions dealing with math::TTensor instead. Here they are:
math::transpose
math::transposed
math::minor
math::determinant
math::inversed
math::inverse
math::identity
math::diagonal
math::translate
and Translate
for Matrix only(4x4 tensor)math::scale
and Scale
for Matrix only(4x4 tensor)math::rotate_x
and RotateX
for Matrix only(4x4 tensor)math::rotate_y
and RotateY
for Matrix only(4x4 tensor)math::rotate_z
and RotateZ
for Matrix only(4x4 tensor)*
to ^
and use standalone functions instead on methods as mentioned above.^
operator for multiplying matrices and vectors if you mean vector multiplication for vectors and 2D matrix muliplications for matrices and vector transformation by matrix. The old *
operator exists as well but it is doing element wise multiplications(it means if you multiply to matrices, new matrix elements will just have composition of corresponding elements from those two matrices).
Instead of Integer and Float types use int and double everywhere. You may use Visual Studio "Replace in Files" feature for fast replace type names in your projects. You also may define Integer as int and Float as double as a quick temporal solution.
You may tell controls and forms to adopt to monitor DPI by using theirs setDPI()
methods.