[−][src]Struct gut::prim::tetrahedron::Tetrahedron
Generic tetrahedron with four points
Methods
impl<T: Clone> Tetrahedron<T>
[src]
pub fn from_indexed_slice<V: Into<[T; 3]> + Clone>(
indices: &[usize; 4],
slice: &[V]
) -> Tetrahedron<T>
[src]
indices: &[usize; 4],
slice: &[V]
) -> Tetrahedron<T>
Build a Tetrahedron from a quadruple of indices.
pub fn new([a, b, c, d]: [[T; 3]; 4]) -> Self
[src]
Build a new tetrahedron from an array of vertex positions.
impl<T: Pod> Tetrahedron<T>
[src]
pub fn as_array(&self) -> &[[T; 3]; 4]
[src]
Return this tetrahedron as an array of vertex positions.
This can be useful for performing custom arithmetic on the tetrahedron positions.
impl<T> Tetrahedron<T>
[src]
Trait Implementations
impl<'a, T: BaseNum + FromPrimitive> Centroid<[T; 3]> for &'a Tetrahedron<T>
[src]
impl<'a, T: BaseFloat> Volume<T> for &'a Tetrahedron<T>
[src]
fn volume(self) -> T
[src]
fn signed_volume(self) -> T
[src]
impl<T: BaseFloat> Volume<T> for Tetrahedron<T>
[src]
fn volume(self) -> T
[src]
fn signed_volume(self) -> T
[src]
impl<'a, T: BaseNum> ShapeMatrix<[[T; 3]; 3]> for &'a Tetrahedron<T>
[src]
Column-major array matrix.
impl<T: BaseNum> ShapeMatrix<[[T; 3]; 3]> for Tetrahedron<T>
[src]
impl<T: Clone> Clone for Tetrahedron<T>
[src]
fn clone(&self) -> Tetrahedron<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Copy> Copy for Tetrahedron<T>
[src]
impl<T: PartialEq> PartialEq<Tetrahedron<T>> for Tetrahedron<T>
[src]
fn eq(&self, other: &Tetrahedron<T>) -> bool
[src]
fn ne(&self, other: &Tetrahedron<T>) -> bool
[src]
impl<T: Debug> Debug for Tetrahedron<T>
[src]
impl<T: BaseNum> Sub<Tetrahedron<T>> for Tetrahedron<T>
[src]
type Output = Tetrahedron<T>
The resulting type after applying the -
operator.
fn sub(self, other: Tetrahedron<T>) -> Tetrahedron<T>
[src]
impl<'a, T: BaseNum> Sub<&'a Tetrahedron<T>> for &'a Tetrahedron<T>
[src]
type Output = Tetrahedron<T>
The resulting type after applying the -
operator.
fn sub(self, other: &Tetrahedron<T>) -> Tetrahedron<T>
[src]
impl<T: BaseNum> Add<Tetrahedron<T>> for Tetrahedron<T>
[src]
type Output = Tetrahedron<T>
The resulting type after applying the +
operator.
fn add(self, other: Tetrahedron<T>) -> Tetrahedron<T>
[src]
impl<'a, T: BaseNum> Add<&'a Tetrahedron<T>> for &'a Tetrahedron<T>
[src]
type Output = Tetrahedron<T>
The resulting type after applying the +
operator.
fn add(self, other: &Tetrahedron<T>) -> Tetrahedron<T>
[src]
impl<T: BaseNum> Mul<T> for Tetrahedron<T>
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: T) -> Self
[src]
impl<'a, T: BaseNum> Mul<T> for &'a Tetrahedron<T>
[src]
type Output = Tetrahedron<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: T) -> Tetrahedron<T>
[src]
impl<T> StructuralPartialEq for Tetrahedron<T>
[src]
Auto Trait Implementations
impl<T> Send for Tetrahedron<T> where
T: Send,
T: Send,
impl<T> Sync for Tetrahedron<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Tetrahedron<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Tetrahedron<T> where
T: UnwindSafe,
T: UnwindSafe,
impl<T> RefUnwindSafe for Tetrahedron<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> Bytes for T
[src]
impl<T> Pod for T where
T: 'static + Copy + Send + Sync + Any,
[src]
T: 'static + Copy + Send + Sync + Any,
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.
fn to_owned(&self) -> T
[src]
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 = !
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> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,