[−][src]Struct mgf::Sphere
A point and a distance.
Like AABBs, spheres are closed volumes.
Fields
c: Point3<f32>
The center point of the sphere.
r: f32
The radius of the sphere.
Methods
impl Sphere
[src]
Trait Implementations
impl Add<Vector3<f32>> for Sphere
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: Vector3<f32>) -> Self
[src]
impl Add<f32> for Sphere
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, s: f32) -> Self
[src]
impl AddAssign<Vector3<f32>> for Sphere
[src]
fn add_assign(&mut self, v: Vector3<f32>)
[src]
impl Bound for Sphere
[src]
impl BoundedBy<AABB> for Sphere
[src]
impl BoundedBy<Sphere> for Triangle
[src]
impl BoundedBy<Sphere> for Rectangle
[src]
impl BoundedBy<Sphere> for AABB
[src]
Taking the bounding sphere of an AABB creates a sphere that contains all of the extreme points of the AABB. Thus, a bounding sphere for an AABB created from another bounding sphere will be larger in size than the original sphere.
impl BoundedBy<Sphere> for Capsule
[src]
impl BoundedBy<Sphere> for OBB
[src]
impl BoundedBy<Sphere> for Component
[src]
impl BoundedBy<Sphere> for Compound
[src]
impl Clone for Sphere
[src]
impl Contacts<Moving<Capsule>> for Sphere
[src]
fn contacts<F: FnMut(Contact)>(
&self,
rhs: &Moving<Capsule>,
callback: F
) -> bool
[src]
&self,
rhs: &Moving<Capsule>,
callback: F
) -> bool
fn last_contact(&self, rhs: &RHS) -> Option<Contact>
[src]
impl Contacts<Moving<Component>> for Sphere
[src]
fn contacts<F: FnMut(Contact)>(
&self,
rhs: &Moving<Component>,
callback: F
) -> bool
[src]
&self,
rhs: &Moving<Component>,
callback: F
) -> bool
fn last_contact(&self, rhs: &RHS) -> Option<Contact>
[src]
impl Contacts<Moving<Sphere>> for Sphere
[src]
fn contacts<F: FnMut(Contact)>(
&self,
sphere: &Moving<Sphere>,
callback: F
) -> bool
[src]
&self,
sphere: &Moving<Sphere>,
callback: F
) -> bool
fn last_contact(&self, rhs: &RHS) -> Option<Contact>
[src]
impl Contains<Point3<f32>> for Sphere
[src]
impl Contains<Sphere> for Sphere
[src]
An important consequence of Spheres being closed: two spheres with the same center and radius contain each other.
impl Convex<Point3<f32>> for Sphere
[src]
impl Copy for Sphere
[src]
impl Debug for Sphere
[src]
impl<'de> Deserialize<'de> for Sphere
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Div<f32> for Sphere
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, s: f32) -> Self
[src]
impl From<Sphere> for Component
[src]
impl Inertia for Sphere
[src]
impl<P: Particle> Intersects<Sphere> for P
[src]
fn intersection(&self, s: &Sphere) -> Option<Intersection>
[src]
impl Mul<f32> for Sphere
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, s: f32) -> Self
[src]
impl Overlaps<AABB> for Sphere
[src]
impl Overlaps<Sphere> for AABB
[src]
impl Overlaps<Sphere> for Sphere
[src]
impl Serialize for Sphere
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl Shape for Sphere
[src]
fn center(&self) -> Point3<f32>
[src]
fn closest_point(&self, to: Point3<f32>) -> Point3<f32>
[src]
fn set_pos(&mut self, p: Point3<f32>)
[src]
impl Sub<Vector3<f32>> for Sphere
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, v: Vector3<f32>) -> Self
[src]
impl Sub<f32> for Sphere
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, s: f32) -> Self
[src]
impl SubAssign<Vector3<f32>> for Sphere
[src]
fn sub_assign(&mut self, v: Vector3<f32>)
[src]
impl Volumetric for Sphere
[src]
Auto Trait Implementations
impl RefUnwindSafe for Sphere
impl Send for Sphere
impl Sync for Sphere
impl Unpin for Sphere
impl UnwindSafe for Sphere
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,