Struct cgmath::Sphere [] [src]

pub struct Sphere<S> {
    pub center: Point3<S>,
    pub radius: S,
}

Fields

center
radius

Trait Implementations

impl<S: BaseFloat + 'static> Bound<S> for Sphere<S>

fn relate_plane(&self, plane: &Plane<S>) -> Relation

fn relate_clip_space(&self, projection: &Matrix4<S>) -> Relation

Derived Implementations

impl<S: Decodable> Decodable for Sphere<S>

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Sphere<S>, __D::Error>

impl<S: Encodable> Encodable for Sphere<S>

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl<S: PartialEq> PartialEq for Sphere<S>

fn eq(&self, __arg_0: &Sphere<S>) -> bool

fn ne(&self, __arg_0: &Sphere<S>) -> bool

impl<S: Clone> Clone for Sphere<S>

fn clone(&self) -> Sphere<S>

fn clone_from(&mut self, source: &Self)

impl<S: Copy> Copy for Sphere<S>