pub struct Sphere {
transformation: Transformation,
material: Material,
}Expand description
Geometrical shape corresponding to a sphere.
Fields§
§transformation: TransformationA generic sphere is defined by means of a
Transformation on the
unit sphere centered at the origin of axis.
This means that you can also get an ellipsis
using the proper scaling.
material: MaterialThe Material of the sphere.
Implementations§
Trait Implementations§
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more