Struct nannou::geom::graph::node::PreparedTransform [] [src]

pub struct PreparedTransform<S = DefaultScalar> {
    pub scale: Vector3<S>,
    pub rot: Basis3<S>,
    pub disp: Vector3<S>,
}

A node's resulting rotation, displacement and scale relative to the graph's origin.

The same as Transfrom but the euler has been converted to a matrix for more efficient application.

Fields

A scaling amount along each axis.

The scaling amount is multiplied onto each vertex of the node.

A rotation amount along each axis, describing a relative orientation.

Rotates all vertices around the node origin when applied.

A displacement amount along each axis.

This vector is added onto the position of each vertex of the node.

Trait Implementations

impl<S: Clone> Clone for PreparedTransform<S>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<S: Debug> Debug for PreparedTransform<S>
[src]

[src]

Formats the value using the given formatter. Read more

impl<S: PartialEq> PartialEq for PreparedTransform<S>
[src]

[src]

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

[src]

This method tests for !=.

Auto Trait Implementations

impl<S> Send for PreparedTransform<S> where
    S: Send

impl<S> Sync for PreparedTransform<S> where
    S: Sync