DAffine2

DAffine2

  • matrix2 : glam::DMat2
  • translation : glam::DVec2

Description

No Documentation 🚧

Functions

FunctionSummary
abs_diff_eq(_self, rhs, max_abs_diff) Returns true if the absolute difference of all elements between `self` and `rhs` is less than or e
clone(_self)No Documentation 🚧
eq(_self, rhs)No Documentation 🚧
from_angle(angle) Creates an affine transform from the given rotation `angle`.
from_angle_translation(angle, translation) Creates an affine transform from the given 2D rotation `angle` (in radians) and `translation`. Eq
from_cols(x_axis, y_axis, z_axis) Creates an affine transform from three column vectors.
from_mat2(matrix2) Creates an affine transform from a 2x2 matrix (expressing scale, shear and rotation)
from_mat2_translation(matrix2, translation) Creates an affine transform from a 2x2 matrix (expressing scale, shear and rotation) and a transla
from_mat3(m) The given `DMat3` must be an affine transform,
from_scale(scale) Creates an affine transform that changes scale. Note that if any scale is zero the transform will
from_scale_angle_translation(scale, angle, translation) Creates an affine transform from the given 2D `scale`, rotation `angle` (in radians) and `translation`
from_translation(translation) Creates an affine transformation from the given 2D `translation`.
inverse(_self) Return the inverse of this transform. Note that if the transform is not invertible the result will
is_finite(_self) Returns `true` if, and only if, all elements are finite. If any element is either `NaN`, positive
is_nan(_self) Returns `true` if any elements are `NaN`.
mul(_self, rhs)No Documentation 🚧
mul-1(arg0, arg1)No Documentation 🚧
to_cols_array(_self) Creates a `[f64; 6]` array storing data in column major order.
to_cols_array_2d(_self) Creates a `[[f64; 2]; 3]` 2D array storing data in column major order. If you require data in row
transform_point2(_self, rhs) Transforms the given 2D point, applying shear, scale, rotation and translation.
transform_vector2(_self, rhs) Transforms the given 2D vector, applying shear, scale and rotation (but NOT translation). To also