Struct nom_stl::Triangle [−][src]
A triangle type with an included normal vertex and vertices.
Implementations
impl Triangle
[src]
pub fn new(normal: [f32; 3], vertices: [[f32; 3]; 3]) -> Self
[src]
Create a new triangle.
pub fn normal(&self) -> [f32; 3]
[src]
Return the normal vertex of the triangle. This indicates the “front” of the triangle.
pub fn vertices(&self) -> [[f32; 3]; 3]
[src]
Return an array of the triangle’s corner vertices
pub fn size_of(&self) -> usize
[src]
The size of the Triangle
struct at runtime.
Trait Implementations
impl Clone for Triangle
[src]
impl Copy for Triangle
[src]
impl Debug for Triangle
[src]
impl PartialEq<Triangle> for Triangle
[src]
impl StructuralPartialEq for Triangle
[src]
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>,