Struct pix_engine::shape::Sphere
source · [−]#[repr(transparent)]pub struct Sphere<T = i32>(_);Expand description
A Sphere positioned at (x, y, z) with radius.
Please see the module-level documentation for examples.
Implementations
Constructs a Sphere at position Point with radius.
Sets the radius of the sphere.
Converts Sphere < T > to Sphere < U >.
Returns Sphere < T > with the nearest integers to the numbers. Round half-way cases away from 0.0.
Returns Sphere < T > with the largest integers less than or equal to the numbers.
Trait Implementations
Returns whether this sphere contains a given Point.
Returns whether this sphere completely contains another sphere.
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Creates a value from an iterator. Read more
Returns the closest intersection point with a given line and distance along the line or
None if there is no intersection.
Returns whether this sphere intersects another sphere.
Auto Trait Implementations
impl<T> RefUnwindSafe for Sphere<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Sphere<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more