[][src]Struct collision::Sphere

pub struct Sphere<S: BaseFloat> {
    pub center: Point3<S>,
    pub radius: S,
}

Bounding sphere.

Fields

center: Point3<S>

Center point of the sphere in world space

radius: S

Sphere radius

Trait Implementations

impl<S: BaseFloat> PlaneBound<S> for Sphere<S>[src]

fn relate_clip_space(&self, projection: Matrix4<S>) -> Relation[src]

Classify the relation with a projection matrix.

impl<S: BaseFloat> Continuous<Ray<S, Point3<S>, Vector3<S>>> for Sphere<S>[src]

type Result = Point3<S>

Result returned by the intersection test

impl<S: BaseFloat> Discrete<Ray<S, Point3<S>, Vector3<S>>> for Sphere<S>[src]

impl<S: BaseFloat> Discrete<Sphere<S>> for Sphere<S>[src]

impl<S: BaseFloat> Contains<Sphere<S>> for Aabb3<S>[src]

impl<S: BaseFloat> Contains<Aabb3<S>> for Sphere<S>[src]

impl<S: BaseFloat> Contains<Point3<S>> for Sphere<S>[src]

impl<S: BaseFloat> Contains<Line<S, Vector3<S>, Point3<S>>> for Sphere<S>[src]

impl<S: BaseFloat> Contains<Sphere<S>> for Sphere<S>[src]

impl<S: BaseFloat> SurfaceArea for Sphere<S>[src]

type Scalar = S

Result type returned from surface area computation

impl<S: BaseFloat> Union<Sphere<S>> for Aabb3<S>[src]

type Output = Aabb3<S>

Union shape created

impl<S: BaseFloat> Union<Sphere<S>> for Sphere<S>[src]

type Output = Sphere<S>

Union shape created

impl<S: BaseFloat> Union<Aabb3<S>> for Sphere<S>[src]

type Output = Sphere<S>

Union shape created

impl<S> Bound for Sphere<S> where
    S: BaseFloat
[src]

type Point = Point3<S>

Point type for the bounding volume (for dimensionality)

impl<S> ComputeBound<Sphere<S>> for Cylinder<S> where
    S: BaseFloat
[src]

impl<S> ComputeBound<Sphere<S>> for Capsule<S> where
    S: BaseFloat
[src]

impl<S> ComputeBound<Sphere<S>> for Cuboid<S> where
    S: BaseFloat
[src]

impl<S> ComputeBound<Sphere<S>> for Cube<S> where
    S: BaseFloat
[src]

impl<S> ComputeBound<Sphere<S>> for ConvexPolyhedron<S> where
    S: BaseFloat
[src]

impl<S> ComputeBound<Sphere<S>> for Primitive3<S> where
    S: BaseFloat
[src]

impl<S> ComputeBound<Sphere<S>> for Quad<S> where
    S: BaseFloat
[src]

impl<S> ComputeBound<Sphere<S>> for Sphere<S> where
    S: BaseFloat
[src]

impl<S: Clone + BaseFloat> Clone for Sphere<S>[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<S: Copy + BaseFloat> Copy for Sphere<S>[src]

impl<S: PartialEq + BaseFloat> PartialEq<Sphere<S>> for Sphere<S>[src]

impl<S: Debug + BaseFloat> Debug for Sphere<S>[src]

Auto Trait Implementations

impl<S> Send for Sphere<S> where
    S: Send

impl<S> Sync for Sphere<S> where
    S: Sync

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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> Any for T where
    T: 'static + ?Sized
[src]