Struct graphene::Sphere [−][src]
pub struct Sphere(_);
Expand description
A sphere, represented by its center and radius.
Implementations
Initializes the given Sphere using the given array
of 3D coordinates so that the sphere includes them.
The center of the sphere can either be specified, or will be center
of the 3D volume that encompasses all points.
points
an array of Point3D
center
the center of the sphere
Returns
the initialized Sphere
Initializes the given Sphere using the given array
of 3D coordinates so that the sphere includes them.
The center of the sphere can either be specified, or will be center
of the 3D volume that encompasses all vectors.
vectors
an array of Vec3
center
the center of the sphere
Returns
the initialized Sphere
Trait Implementations
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Returns the type identifier of Self.
Auto Trait Implementations
impl RefUnwindSafe for Sphereimpl UnwindSafe for SphereBlanket Implementations
Mutably borrows from an owned value. Read more
impl<'a, T, C> FromValueOptional<'a> for T where
C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError>,
T: FromValue<'a, Checker = C>,