Struct rgeometry::data::TriangleView
source · [−]pub struct TriangleView<'a, T>(_);
Implementations
sourceimpl<'a, T> TriangleView<'a, T> where
T: PolygonScalar,
impl<'a, T> TriangleView<'a, T> where
T: PolygonScalar,
pub fn new(pts: [&'a Point<T, 2>; 3]) -> Result<TriangleView<'a, T>, Error>
pub fn new_ccw(pts: [&'a Point<T, 2>; 3]) -> TriangleView<'a, T>
pub fn new_unchecked(pts: [&'a Point<T, 2>; 3]) -> TriangleView<'a, T>
pub fn validate(&self) -> Result<(), Error>
pub fn orientation(&self) -> Orientation
pub fn locate(&self, pt: &Point<T, 2>) -> PointLocation
pub fn signed_area<F>(&self) -> F where
T: PolygonScalar + Into<F>,
F: NumOps<F, F> + FromPrimitive + Clone,
pub fn signed_area_2x<F>(&self) -> F where
T: PolygonScalar + Into<F>,
F: NumOps<F, F> + Clone,
pub fn bounding_box(&self) -> (Point<T, 2>, Point<T, 2>)
pub fn rejection_sampling<R>(&self, rng: &mut R) -> Point<T, 2> where
R: Rng + ?Sized,
T: SampleUniform,
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for TriangleView<'a, T> where
T: RefUnwindSafe,
impl<'a, T> Send for TriangleView<'a, T> where
T: Sync,
impl<'a, T> Sync for TriangleView<'a, T> where
T: Sync,
impl<'a, T> Unpin for TriangleView<'a, T>
impl<'a, T> UnwindSafe for TriangleView<'a, T> where
T: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more