Struct rhusics::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]
Trait Implementations
impl<S> Clone for Sphere<S> where
S: Clone,
[src]
S: Clone,
fn clone(&self) -> Sphere<S>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<S> SupportFunction for Sphere<S> where
S: BaseFloat,
[src]
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]
T: Transform<Point3<S>>,
Get the support point on the shape in a given direction. Read more
impl<S> HasAabb for Sphere<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Aabb = Aabb3<S>
Bounding box type
fn get_bound(&self) -> Aabb3<S>
[src]
Get the bounding box of the primitive in local space coordinates.
impl<S> PartialEq<Sphere<S>> for Sphere<S> where
S: PartialEq<S>,
[src]
S: PartialEq<S>,
fn eq(&self, __arg_0: &Sphere<S>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Sphere<S>) -> bool
[src]
This method tests for !=
.
impl<S> Debug for Sphere<S> where
S: Debug,
[src]
S: Debug,
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
impl<S> Discrete<Ray<S, Point3<S>, Vector3<S>>> for Sphere<S> where
S: BaseFloat,
[src]
S: BaseFloat,
impl<S> Continuous<Ray<S, Point3<S>, Vector3<S>>> for Sphere<S> where
S: BaseFloat,
[src]
S: BaseFloat,