Struct dumbmath::sphere::Sphere3f
[−]
[src]
pub struct Sphere3f { pub center: Vec3f, pub radius: f32, }
Sphere represented by a center and radius
Fields
center: Vec3f
radius: f32
Methods
impl Sphere3f
[src]
fn new(center: Vec3f, radius: f32) -> Sphere3f
fn from_radius(radius: f32) -> Sphere3f
fn radius_squared(&self) -> f32
Trait Implementations
impl PartialEq for Sphere3f
[src]
fn eq(&self, __arg_0: &Sphere3f) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Sphere3f) -> bool
This method tests for !=
.
impl Copy for Sphere3f
[src]
impl Clone for Sphere3f
[src]
fn clone(&self) -> Sphere3f
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more