#[repr(transparent)]pub struct Triangle { /* private fields */ }
Implementations
sourceimpl Triangle
impl Triangle
pub fn contains_point(&self, p: &Point3D) -> bool
pub fn area(&self) -> f32
pub fn barycoords(&self, p: Option<&Point3D>) -> Option<Vec2>
pub fn bounding_box(&self) -> Box
pub fn midpoint(&self) -> Point3D
pub fn normal(&self) -> Vec3
pub fn plane(&self) -> Plane
pub fn points(&self) -> (Point3D, Point3D, Point3D)
pub fn uv(
&self,
p: Option<&Point3D>,
uv_a: &Vec2,
uv_b: &Vec2,
uv_c: &Vec2
) -> Option<Vec2>
pub fn vertices(&self) -> (Vec3, Vec3, Vec3)
Trait Implementations
sourceimpl StaticType for Triangle
impl StaticType for Triangle
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
impl Copy for Triangle
impl Eq for Triangle
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
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
sourceimpl<T> StaticTypeExt for T where
T: StaticType,
impl<T> StaticTypeExt for T where
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
sourceimpl<T> ToClosureReturnValue for T where
T: ToValue,
impl<T> ToClosureReturnValue for T where
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a SendValue
clone of self
.