[−][src]Enum mgf::Component
A component is a generic volume that can either be a Sphere or Capsule at runtime. Anything that can collide with a Sphere and a Capsule can collide with a component.
Variants
Sphere(Sphere)
Capsule(Capsule)
Methods
impl Component
[src]
pub fn deconstruct(
&self
) -> (Point3<f32>, Quaternion<f32>, ComponentConstructor)
[src]
&self
) -> (Point3<f32>, Quaternion<f32>, ComponentConstructor)
Create a ComponentConstructor and return the position and rotation of the Component.
Trait Implementations
impl Add<Vector3<f32>> for Component
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: Vector3<f32>) -> Self
[src]
impl AddAssign<Vector3<f32>> for Component
[src]
fn add_assign(&mut self, v: Vector3<f32>)
[src]
impl BoundedBy<AABB> for Component
[src]
impl BoundedBy<Sphere> for Component
[src]
impl Clone for Component
[src]
impl Copy for Component
[src]
impl Debug for Component
[src]
impl From<Capsule> for Component
[src]
impl From<Sphere> for Component
[src]
impl Inertia for Component
[src]
impl<P: Particle> Intersects<Component> for P
[src]
fn intersection(&self, rhs: &Component) -> Option<Intersection>
[src]
impl Shape for Component
[src]
fn center(&self) -> Point3<f32>
[src]
fn closest_point(&self, to: Point3<f32>) -> Point3<f32>
[src]
fn set_pos(&mut self, p: Point3<f32>)
[src]
impl Sub<Vector3<f32>> for Component
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, v: Vector3<f32>) -> Self
[src]
impl SubAssign<Vector3<f32>> for Component
[src]
fn sub_assign(&mut self, v: Vector3<f32>)
[src]
impl Volumetric for Component
[src]
Auto Trait Implementations
impl RefUnwindSafe for Component
impl Send for Component
impl Sync for Component
impl Unpin for Component
impl UnwindSafe for Component
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> 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 = 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>,