Lines Matching full:translation
6 /// A 3D affine transform, which can represent translation, rotation, scaling and shear.
13 pub translation: Vec3A, field
23 translation: Vec3A::ZERO,
31 translation: Vec3A::ZERO,
37 translation: Vec3A::NAN,
46 translation: w_axis, in from_cols()
58 translation: Vec3A::from_array([m[9], m[10], m[11]]),
69 let w = &self.translation;
82 translation: m[3].into(),
96 self.translation.into(),
110 translation: Vec3A::from_slice(&slice[9..12]), in from_cols_slice()
122 self.translation.write_to_slice(&mut slice[9..12]); in write_cols_to_slice()
132 translation: Vec3A::ZERO, in from_scale()
141 translation: Vec3A::ZERO, in from_quat()
152 translation: Vec3A::ZERO, in from_axis_angle()
163 translation: Vec3A::ZERO, in from_rotation_x()
174 translation: Vec3A::ZERO, in from_rotation_y()
185 translation: Vec3A::ZERO, in from_rotation_z()
189 /// Creates an affine transformation from the given 3D `translation`.
192 pub fn from_translation(translation: Vec3) -> Self { in from_translation()
196 translation: translation.into(), in from_translation()
208 translation: Vec3A::ZERO, in from_mat3()
213 /// and a translation vector.
215 /// Equivalent to `Affine3A::from_translation(translation) * Affine3A::from_mat3(mat3)`
218 pub fn from_mat3_translation(mat3: Mat3, translation: Vec3) -> Self { in from_mat3_translation()
222 translation: translation.into(), in from_mat3_translation()
227 /// `translation`.
229 /// Equivalent to `Affine3A::from_translation(translation) *
233 pub fn from_scale_rotation_translation(scale: Vec3, rotation: Quat, translation: Vec3) -> Self { in from_scale_rotation_translation()
242 translation: translation.into(), in from_scale_rotation_translation()
246 /// Creates an affine transform from the given 3D `rotation` and `translation`.
248 /// Equivalent to `Affine3A::from_translation(translation) * Affine3A::from_quat(rotation)`
251 pub fn from_rotation_translation(rotation: Quat, translation: Vec3) -> Self { in from_rotation_translation()
255 translation: translation.into(), in from_rotation_translation()
270 translation: Vec3A::from_vec4(m.w_axis), in from_mat4()
274 /// Extracts `scale`, `rotation` and `translation` from `self`.
308 (scale, rotation, self.translation.into()) in to_scale_rotation_translation()
338 translation: Vec3A::new(-eye.dot(s), -eye.dot(u), eye.dot(f)), in look_to_rh()
370 /// Transforms the given 3D points, applying shear, scale, rotation and translation.
377 + self.translation) in transform_point3()
382 /// translation).
384 /// To also apply translation, use [`Self::transform_point3()`] instead.
395 /// Transforms the given [`Vec3A`], applying shear, scale, rotation and translation.
399 self.matrix3 * rhs + self.translation in transform_point3a()
403 /// translation).
405 /// To also apply translation, use [`Self::transform_point3a()`] instead.
419 self.matrix3.is_finite() && self.translation.is_finite() in is_finite()
426 self.matrix3.is_nan() || self.translation.is_nan() in is_nan()
442 && self.translation.abs_diff_eq(rhs.translation, max_abs_diff) in abs_diff_eq()
452 // transform negative translation by the matrix inverse: in inverse()
453 let translation = -(matrix3 * self.translation); in inverse() localVariable
457 translation, in inverse()
487 self.matrix3.eq(&rhs.matrix3) && self.translation.eq(&rhs.translation) in eq()
495 .field("translation", &self.translation) in fmt()
513 self.translation in fmt()
519 self.matrix3.x_axis, self.matrix3.y_axis, self.matrix3.z_axis, self.translation in fmt()
541 translation: self.matrix3 * rhs.translation + self.translation, in mul()
560 m.translation.extend(1.0), in from()