[−][src]Struct vxdraw::debtri::DebugTriangle
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]
impl Clone for DebugTriangle
[src]
fn clone(&self) -> DebugTriangle
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl From<[f32; 6]> for DebugTriangle
[src]
impl Copy for DebugTriangle
[src]
impl Debug for DebugTriangle
[src]
Auto Trait Implementations
impl Unpin for DebugTriangle
impl Sync for DebugTriangle
impl Send for DebugTriangle
impl UnwindSafe for DebugTriangle
impl RefUnwindSafe for DebugTriangle
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Supports<T> for T
[src]
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,