[−][src]Struct hexasphere::Triangle
A main triangle on the base shape of a subdivided shape.
The specification of the library expects a
, b
, and c
to be in a counter-clockwise winding.
Fields
a: u32
b: u32
c: u32
ab_edge: usize
bc_edge: usize
ca_edge: usize
Implementations
impl Triangle
[src]
pub const fn new(
a: u32,
b: u32,
c: u32,
ab_edge: usize,
bc_edge: usize,
ca_edge: usize
) -> Self
[src]
a: u32,
b: u32,
c: u32,
ab_edge: usize,
bc_edge: usize,
ca_edge: usize
) -> Self
Creates a new Triangle
given the data. This is done
to avoid boilerplate.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Triangle
impl Send for Triangle
impl Sync for Triangle
impl Unpin for Triangle
impl UnwindSafe for Triangle
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut 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.
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>,