Struct three_d::Axes[][src]

pub struct Axes { /* fields omitted */ }

Three arrows indicating the three main axes; the x-axis (red), the y-axis (green) and the z-axis (blue). Used for easily debugging where objects are placed in the 3D world.

Implementations

impl Axes[src]

pub fn new(context: &Context, radius: f32, length: f32) -> Result<Self, Error>[src]

pub fn render(
    &self,
    viewport: Viewport,
    transformation: &Mat4,
    camera: &Camera
) -> Result<(), Error>
[src]

Render the axes. Must be called in a render target render function, for example in the callback function of Screen::write. The transformation can be used to position, orientate and scale the axes.

Auto Trait Implementations

impl !RefUnwindSafe for Axes

impl !Send for Axes

impl !Sync for Axes

impl Unpin for Axes

impl UnwindSafe for Axes

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.