Struct rhusics_core::collide3d::Sphere [−][src]
pub struct Sphere<S> { pub radius: S, }
Sphere primitive
Fields
radius: S
Radius of the sphere
Methods
impl<S> Sphere<S>
[src]
impl<S> Sphere<S>
Trait Implementations
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]
fn compute_bound(&self) -> Sphere<S>
Compute the bounding volume
impl<S> ComputeBound<Aabb3<S>> for Sphere<S> where
S: BaseFloat,
[src]
impl<S> ComputeBound<Aabb3<S>> for Sphere<S> where
S: BaseFloat,
fn compute_bound(&self) -> Aabb3<S>
[src]
fn compute_bound(&self) -> Aabb3<S>
Compute the bounding volume
impl<S> Clone for Sphere<S> where
S: Clone,
[src]
impl<S> Clone for Sphere<S> where
S: Clone,
fn clone(&self) -> Sphere<S>
[src]
fn clone(&self) -> Sphere<S>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<S> Debug for Sphere<S> where
S: Debug,
[src]
impl<S> Debug for Sphere<S> where
S: Debug,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl<S> Primitive for Sphere<S> where
S: BaseFloat,
[src]
impl<S> Primitive for Sphere<S> where
S: BaseFloat,
type Point = Point3<S>
Point type
fn support_point<T>(&self, direction: &Vector3<S>, transform: &T) -> Point3<S> where
T: Transform<Point3<S>>,
[src]
fn support_point<T>(&self, direction: &Vector3<S>, transform: &T) -> Point3<S> where
T: Transform<Point3<S>>,
Get the support point on the shape in a given direction. Read more
impl<S> From<Sphere<S>> for Primitive3<S> where
S: BaseFloat,
[src]
impl<S> From<Sphere<S>> for Primitive3<S> where
S: BaseFloat,
fn from(sphere: Sphere<S>) -> Primitive3<S>
[src]
fn from(sphere: Sphere<S>) -> Primitive3<S>
Performs the conversion.
impl<S> Serialize for Sphere<S> where
S: Serialize,
[src]
impl<S> Serialize for Sphere<S> where
S: Serialize,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'de, S> Deserialize<'de> for Sphere<S> where
S: Deserialize<'de>,
[src]
impl<'de, S> Deserialize<'de> for Sphere<S> where
S: Deserialize<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Sphere<S>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<Sphere<S>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<S> Discrete<Ray<S, Point3<S>, Vector3<S>>> for Sphere<S> where
S: BaseFloat,
[src]
impl<S> Discrete<Ray<S, Point3<S>, Vector3<S>>> for Sphere<S> where
S: BaseFloat,
impl<S> Continuous<Ray<S, Point3<S>, Vector3<S>>> for Sphere<S> where
S: BaseFloat,
[src]
impl<S> Continuous<Ray<S, Point3<S>, Vector3<S>>> for Sphere<S> where
S: BaseFloat,
type Result = Point3<S>
Result returned by the intersection test
fn intersection(&self, r: &Ray<S, Point3<S>, Vector3<S>>) -> Option<Point3<S>>
[src]
fn intersection(&self, r: &Ray<S, Point3<S>, Vector3<S>>) -> Option<Point3<S>>
Intersection test
impl<S> PartialEq<Sphere<S>> for Sphere<S> where
S: PartialEq<S>,
[src]
impl<S> PartialEq<Sphere<S>> for Sphere<S> where
S: PartialEq<S>,
fn eq(&self, other: &Sphere<S>) -> bool
[src]
fn eq(&self, other: &Sphere<S>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Sphere<S>) -> bool
[src]
fn ne(&self, other: &Sphere<S>) -> bool
This method tests for !=
.
impl<S> Volume<S, Matrix3<S>> for Sphere<S> where
S: BaseFloat,
[src]
impl<S> Volume<S, Matrix3<S>> for Sphere<S> where
S: BaseFloat,