Struct mgf::Sphere [] [src]

pub struct Sphere {
    pub c: Point3<f32>,
    pub r: f32,
}

Spheres are a point and a distance. Like AABBs, spheres as bounds are closed.

Fields

Methods

impl Sphere
[src]

[src]

Rotates the sphere about the origin

Trait Implementations

impl BoundedBy<AABB> for Sphere
[src]

[src]

impl Mul<f32> for Sphere
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl Div<f32> for Sphere
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl Add<f32> for Sphere
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl Sub<f32> for Sphere
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl<T: BoundedBy<Sphere>> Collider<Contains, T> for Sphere
[src]

[src]

Returns the first collision found if any exists.

[src]

Collide with an object and call the callback for as many contacts there are. True is returned if any contact is found. Read more

impl Bound for Sphere
[src]

[src]

Produce a bound that encloses the two arguments.

[src]

Rotation to a bounding sphere does nothing.

[src]

impl Copy for Sphere
[src]

impl Clone for Sphere
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Sphere
[src]

[src]

Formats the value using the given formatter.

impl MinDistance<Point3<f32>> for Sphere
[src]

[src]

Returns closest point on the sphere to q

impl Add<Vector3<f32>> for Sphere
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl Sub<Vector3<f32>> for Sphere
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl AddAssign<Vector3<f32>> for Sphere
[src]

[src]

Performs the += operation.

impl SubAssign<Vector3<f32>> for Sphere
[src]

[src]

Performs the -= operation.

impl Shape for Sphere
[src]

[src]

Returns the center of mass of the geometry, assuming a regular density.

[src]

Sets the center of the shape to p.

impl Collider<Contains, Point3<f32>> for Sphere
[src]

[src]

Returns the first collision found if any exists.

[src]

Collide with an object and call the callback for as many contacts there are. True is returned if any contact is found. Read more

impl Collider<Intersection, Ray> for Sphere
[src]

[src]

Collide with an object and call the callback for as many contacts there are. True is returned if any contact is found. Read more

[src]

Returns the first collision found if any exists.

impl Collider<Contact, Moving<Sphere>> for Sphere
[src]

[src]

Collide with an object and call the callback for as many contacts there are. True is returned if any contact is found. Read more

[src]

Returns the first collision found if any exists.

impl Collider<Contact, Moving<Capsule>> for Sphere
[src]

[src]

Collide with an object and call the callback for as many contacts there are. True is returned if any contact is found. Read more

[src]

Returns the first collision found if any exists.

impl Inertia for Sphere
[src]

[src]