[−][src]Struct collision::Sphere
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]
impl<S: BaseFloat> PlaneBound<S> for Sphere<S>
fn relate_plane(&self, plane: Plane<S>) -> Relation | [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]
impl<S: BaseFloat> Continuous<Ray<S, Point3<S>, Vector3<S>>> for Sphere<S>
type Result = Point3<S>
Result returned by the intersection test
fn intersection(&self, r: &Ray3<S>) -> Option<Point3<S>> | [src] |
impl<S: BaseFloat> Discrete<Ray<S, Point3<S>, Vector3<S>>> for Sphere<S>
[src]
impl<S: BaseFloat> Discrete<Ray<S, Point3<S>, Vector3<S>>> for Sphere<S>
fn intersects(&self, r: &Ray3<S>) -> bool | [src] |
impl<S: BaseFloat> Discrete<Sphere<S>> for Sphere<S>
[src]
impl<S: BaseFloat> Discrete<Sphere<S>> for Sphere<S>
fn intersects(&self, s2: &Sphere<S>) -> bool | [src] |
impl<S: BaseFloat> Contains<Sphere<S>> for Aabb3<S>
[src]
impl<S: BaseFloat> Contains<Sphere<S>> for Aabb3<S>
impl<S: BaseFloat> Contains<Aabb3<S>> for Sphere<S>
[src]
impl<S: BaseFloat> Contains<Aabb3<S>> for Sphere<S>
impl<S: BaseFloat> Contains<Point3<S>> for Sphere<S>
[src]
impl<S: BaseFloat> Contains<Point3<S>> for Sphere<S>
impl<S: BaseFloat> Contains<Line<S, Vector3<S>, Point3<S>>> for Sphere<S>
[src]
impl<S: BaseFloat> Contains<Line<S, Vector3<S>, Point3<S>>> for Sphere<S>
impl<S: BaseFloat> Contains<Sphere<S>> for Sphere<S>
[src]
impl<S: BaseFloat> Contains<Sphere<S>> for Sphere<S>
impl<S: BaseFloat> SurfaceArea for Sphere<S>
[src]
impl<S: BaseFloat> SurfaceArea for Sphere<S>
impl<S: BaseFloat> Union<Sphere<S>> for Aabb3<S>
[src]
impl<S: BaseFloat> Union<Sphere<S>> for Aabb3<S>
impl<S: BaseFloat> Union<Sphere<S>> for Sphere<S>
[src]
impl<S: BaseFloat> Union<Sphere<S>> for Sphere<S>
impl<S: BaseFloat> Union<Aabb3<S>> for Sphere<S>
[src]
impl<S: BaseFloat> Union<Aabb3<S>> for Sphere<S>
impl<S> Bound for Sphere<S> where
S: BaseFloat,
[src]
impl<S> Bound for Sphere<S> where
S: BaseFloat,
type Point = Point3<S>
Point type for the bounding volume (for dimensionality)
fn min_extent(&self) -> Point3<S> | [src] |
fn max_extent(&self) -> Point3<S> | [src] |
fn with_margin(&self, add: Vector3<S>) -> Self | [src] |
fn transform_volume<T>(&self, transform: &T) -> Self where | [src] |
fn empty() -> Self | [src] |
impl<S> ComputeBound<Sphere<S>> for Cylinder<S> where
S: BaseFloat,
[src]
impl<S> ComputeBound<Sphere<S>> for Cylinder<S> where
S: BaseFloat,
fn compute_bound(&self) -> Sphere<S> | [src] |
impl<S> ComputeBound<Sphere<S>> for Capsule<S> where
S: BaseFloat,
[src]
impl<S> ComputeBound<Sphere<S>> for Capsule<S> where
S: BaseFloat,
fn compute_bound(&self) -> Sphere<S> | [src] |
impl<S> ComputeBound<Sphere<S>> for Cuboid<S> where
S: BaseFloat,
[src]
impl<S> ComputeBound<Sphere<S>> for Cuboid<S> where
S: BaseFloat,
fn compute_bound(&self) -> Sphere<S> | [src] |
impl<S> ComputeBound<Sphere<S>> for Cube<S> where
S: BaseFloat,
[src]
impl<S> ComputeBound<Sphere<S>> for Cube<S> where
S: BaseFloat,
fn compute_bound(&self) -> Sphere<S> | [src] |
impl<S> ComputeBound<Sphere<S>> for ConvexPolyhedron<S> where
S: BaseFloat,
[src]
impl<S> ComputeBound<Sphere<S>> for ConvexPolyhedron<S> where
S: BaseFloat,
fn compute_bound(&self) -> Sphere<S> | [src] |
impl<S> ComputeBound<Sphere<S>> for Primitive3<S> where
S: BaseFloat,
[src]
impl<S> ComputeBound<Sphere<S>> for Primitive3<S> where
S: BaseFloat,
fn compute_bound(&self) -> Sphere<S> | [src] |
impl<S> ComputeBound<Sphere<S>> for Quad<S> where
S: BaseFloat,
[src]
impl<S> ComputeBound<Sphere<S>> for Quad<S> where
S: BaseFloat,
fn compute_bound(&self) -> Sphere<S> | [src] |
impl<S> ComputeBound<Sphere<S>> for Sphere<S> where
S: BaseFloat,
[src]
impl<S> ComputeBound<Sphere<S>> for Sphere<S> where
S: BaseFloat,
fn compute_bound(&self) -> Sphere<S> | [src] |
impl<S: Copy + BaseFloat> Copy for Sphere<S>
[src]
impl<S: Copy + BaseFloat> Copy for Sphere<S>
impl<S: PartialEq + BaseFloat> PartialEq<Sphere<S>> for Sphere<S>
[src]
impl<S: PartialEq + BaseFloat> PartialEq<Sphere<S>> for Sphere<S>
impl<S: Clone + BaseFloat> Clone for Sphere<S>
[src]
impl<S: Clone + BaseFloat> Clone for Sphere<S>
fn clone(&self) -> Sphere<S> | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
impl<S: Debug + BaseFloat> Debug for Sphere<S>
[src]
impl<S: Debug + BaseFloat> Debug for Sphere<S>
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |