Struct collision::Sphere [] [src]

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

Bounding sphere.

Fields

Center point of the sphere in world space

Sphere radius

Trait Implementations

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

[src]

Compute the bounding volume

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

[src]

Compute the bounding volume

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

[src]

Compute the bounding volume

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

[src]

Compute the bounding volume

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

[src]

Compute the bounding volume

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

[src]

Compute the bounding volume

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

[src]

Compute the bounding volume

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

[src]

Containment test

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

Union shape created

[src]

Build the union shape of self and the given shape.

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

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

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

[src]

Formats the value using the given formatter. Read more

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

Point type for the bounding volume (for dimensionality)

[src]

Minimum extents of the bounding volume

[src]

Maximum extents of the bounding volume

[src]

Create a new bounding volume extended by the given amount

[src]

Apply an arbitrary transform to the bounding volume

[src]

Create empty volume

impl<S: BaseFloat> Continuous<Ray3<S>> for Sphere<S>
[src]

Result returned by the intersection test

[src]

Intersection test

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

[src]

Intersection test

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

[src]

Intersection test

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

[src]

Classify the spatial relation with a plane.

[src]

Classify the relation with a projection matrix.

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

[src]

Containment test

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

[src]

Containment test

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

[src]

Containment test

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

[src]

Containment test

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

Union shape created

[src]

Build the union shape of self and the given shape.

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

Union shape created

[src]

Build the union shape of self and the given shape.

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

Result type returned from surface area computation

[src]

Compute surface area

Auto Trait Implementations

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

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