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

pub struct Transform<S = DefaultScalar> where
    S: BaseFloat
{ pub scale: Vector3<S>, pub rot: Euler<Rad<S>>, pub disp: Vector3<S>, }

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

A transform is calculated and applied to a node's vertices in the following order:

  1. scale: 1.0 * parent_scale * edge_scale
  2. rotation: 0.0 + parent_position + edge_displacement
  3. displacement: 0.0 + parent_orientation + edge_orientation`

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.

Methods

impl<S> Transform<S> where
    S: BaseFloat
[src]

[src]

Apply the given parent Edge to this transform.

[src]

Prepare this transform for application.

Important traits for TransformedVertices<I, S>
[src]

Transform the given vertices.

Important traits for TransformedTriangles<I, V, S>
[src]

Transform the given vertices.

Trait Implementations

impl<S: Clone> Clone for Transform<S> where
    S: BaseFloat
[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 Transform<S> where
    S: BaseFloat
[src]

[src]

Formats the value using the given formatter. Read more

impl<S: PartialEq> PartialEq for Transform<S> where
    S: BaseFloat
[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<S> Default for Transform<S> where
    S: BaseFloat
[src]

[src]

Returns the "default value" for a type. Read more

impl<S> Transform<Point3<S>> for Transform<S> where
    S: BaseFloat
[src]

[src]

Create an identity transformation. That is, a transformation which does nothing. Read more

[src]

Create a transformation that rotates a vector to look at center from eye, using up for orientation. Read more

[src]

Transform a vector using this transform.

[src]

Inverse transform a vector using this transform

[src]

Transform a point using this transform.

[src]

Combine this transform with another, yielding a new transformation which has the effects of both. Read more

[src]

Create a transform that "un-does" this one.

[src]

Combine this transform with another, in-place.

Auto Trait Implementations

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

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