Struct crystal_ball::shapes::Sphere
source · pub struct Sphere {
pub transform: Transform,
}
Expand description
A geometrically perfect sphere.
Fields§
§transform: Transform
Implementations§
Trait Implementations§
source§impl PartialEq for Sphere
impl PartialEq for Sphere
source§impl Transformable for Sphere
impl Transformable for Sphere
source§fn rotate_x(self, angle: f64) -> Self
fn rotate_x(self, angle: f64) -> Self
Rotate
self
around its center along the +X axis. Read moresource§fn rotate_y(self, angle: f64) -> Self
fn rotate_y(self, angle: f64) -> Self
Rotate
self
around its center along the +Y axis. Read moresource§fn rotate_z(self, angle: f64) -> Self
fn rotate_z(self, angle: f64) -> Self
Rotate
self
around its center along the +Z axis. Read moresource§fn scale_xyz(self, scale: Vec3) -> Self
fn scale_xyz(self, scale: Vec3) -> Self
Scale
self
relative to its center along all 3 dimensions.impl Copy for Sphere
impl StructuralPartialEq for Sphere
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
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.