Struct adi_gpu::Transform [] [src]

#[must_use]
pub struct Transform(pub [f32; 16]);

Transform represents a transformation matrix.

Methods

impl Transform
[src]

[src]

A no-op transform (identity matrix).

[src]

Multiply self by a matrix.

[src]

Multiply self by a scale transformation matrix.

[src]

Multiply self by a translation matrix.

[src]

Multiply self by a rotation matrix. x, y and z are in PI Radians.

Trait Implementations

impl Clone for Transform
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Transform
[src]

impl PartialEq for Transform
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Mul<Frustum> for Transform
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl Mul<Plane> for Transform
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl Mul<Vec3<f32>> for Transform
[src]

The resulting type after applying the * operator.

[src]

Transform as a position.

impl Mul<Transform> for Transform
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl Display for Transform
[src]

[src]

Formats the value using the given formatter. Read more