[−][src]Struct mazth::triprism::TriPrism
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]
fn get_shape_data(&self) -> Vec<f64>
[src]
fn get_type(&self) -> ShapeType
[src]
fn get_bound(&self) -> &dyn IBound
[src]
fn get_intersect(&self, other: &dyn IShape) -> (bool, Option<Mat3x1<f64>>)
[src]
fn get_support(&self, v: &Mat3x1<f64>) -> Option<Mat3x1<f64>>
[src]
impl IVicinity<f64> for TriPrism
[src]
fn set_vicinity(&mut self, epsilon: f64)
[src]
fn within_vicinity(&self, a: f64, b: f64) -> bool
[src]
impl Clone for TriPrism
[src]
impl Default for TriPrism
[src]
impl Debug for TriPrism
[src]
Auto Trait Implementations
impl Send for TriPrism
impl Sync for TriPrism
impl Unpin for TriPrism
impl UnwindSafe for TriPrism
impl RefUnwindSafe for TriPrism
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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 = 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> 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,