pub struct OrthographicCamera { /* private fields */ }
Expand description

Simple camera for orthographic projections.

Implementations

Gets an immutable reference to the transform parameters.

Gets an mutable reference to the transform parameters.

Flags pixel perfect alignment.

Logical size of the viewport.

Creates a new transform matix based on the parameters of the LayerTransform. The transform matrix is built in this order: Scale * Translation * Rotation.

Transforms the normalized position into a position in the transform. Typically you’ll use the mouse’s normalized position and convert that into world space.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.