[][src]Struct vxdraw::debtri::DebugTriangle

pub struct DebugTriangle { /* fields omitted */ }

Information used when creating/updating a debug triangle

Methods

impl DebugTriangle[src]

pub fn new() -> Self[src]

Create a new debug triangle

pub fn vertices(self, vertices: [(f32, f32); 3]) -> Self[src]

Set the vertices of this debug triangle

pub fn colors(self, colors: [Color; 3]) -> Self[src]

Set the colors of this debug triangle

pub fn translation(self, trn: (f32, f32)) -> Self[src]

Set the translation of this debug triangle

pub fn rotation<T: Copy + Into<Rad<f32>>>(self, angle: T) -> Self[src]

Set the rotation of this debug triangle

pub fn scale(self, scale: f32) -> Self[src]

Set the scale of this debug triangle

pub fn radius(&self) -> f32[src]

Compute the circle that contains the entire triangle regardless of rotation

Useful when making sure triangles do not touch by adding both their radii together and using that to space triangles.

Trait Implementations

impl Default for DebugTriangle[src]

fn default() -> Self[src]

Creates a default equilateral RGB triangle without opacity or rotation

impl Clone for DebugTriangle[src]

impl From<[f32; 6]> for DebugTriangle[src]

impl Copy for DebugTriangle[src]

impl Debug for DebugTriangle[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for 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.

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

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

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

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

impl<T> SetParameter for T

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,