[][src]Struct mazth::triprism::TriPrism

pub struct TriPrism {
    pub _tri_base: [Mat3x1<f64>; 3],
    pub _tri_base2: [Mat3x1<f64>; 3],
    pub _normal_height: Mat3x1<f64>,
    pub _bound: AxisAlignedBBox,
    pub _vicinity: f64,
}

Fields

_tri_base: [Mat3x1<f64>; 3]

base

_tri_base2: [Mat3x1<f64>; 3]

base + height offset in normal direction of base

_normal_height: Mat3x1<f64>

normal of the triangle base, scaled with height

_bound: AxisAlignedBBox_vicinity: f64

Methods

impl TriPrism[src]

pub fn init(tri_base: &[f64], height: f64) -> TriPrism[src]

initialize with tribase: base vertices in ccw order

Trait Implementations

impl IShape for TriPrism[src]

impl IVicinity<f64> for TriPrism[src]

impl Clone for TriPrism[src]

impl Default for TriPrism[src]

impl Debug for TriPrism[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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