Struct three_d::object::Axes [−][src]
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]
&self,
viewport: Viewport,
transformation: &Mat4,
camera: &Camera
) -> Result<(), Error>
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,