pub trait HasMatrix4: GenericVector3 {
    type Matrix4Type: Matrix4<Self>;

    // Required methods
    fn matrix4_from_scale_center_plane(
        scale: Self::Scalar,
        center: Self,
        plane: Plane
    ) -> Self::Matrix4Type;
    fn identity() -> Self::Matrix4Type;
}

Required Associated Types§

Required Methods§

source

fn matrix4_from_scale_center_plane( scale: Self::Scalar, center: Self, plane: Plane ) -> Self::Matrix4Type

Creates a 4x4 transformation matrix for scaling, centering, and transforming to a specified 2D plane.

Arguments
  • scale - Scaling factor.
  • center - Center point for translation.
  • plane - Target 2D plane (XY, XZ, or YZ).
Returns

The resulting 4x4 transformation matrix.

source

fn identity() -> Self::Matrix4Type

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl HasMatrix4 for Vec3A

source§

impl HasMatrix4 for Vec3

source§

impl HasMatrix4 for DVec3

Implementors§