Struct adi_screen::Transform [] [src]

#[must_use]
pub struct Transform(_);

Transform represents a transformation matrix.

Methods

impl Transform
[src]

Create a transform that does nothing. ( Underneath, this is an identity matrix ).

Translate self by x, y and z.

Scale self by x, y and z.

Rotate self by yaw, pitch and roll.

Apply perspective with fov degrees for field of view. Note: The return value is TransformApply.

Apply an orthographic projection ( depth doesn't change x and y position ). Note: The return value is TransformApply.

Multiply by a projection that scales width and height by the smallest widget size. The widget is put at position pos. Position isn't affected by aspect ratio.