pub struct SphericalBounds {
pub range_min: Option<f64>,
pub range_max: Option<f64>,
pub elevation_min: Option<f64>,
pub elevation_max: Option<f64>,
pub azimuth_start: Option<f64>,
pub azimuth_end: Option<f64>,
}Expand description
Optional minimum and maximum values for spherical coordinates.
Fields§
§range_min: Option<f64>§range_max: Option<f64>§elevation_min: Option<f64>§elevation_max: Option<f64>§azimuth_start: Option<f64>§azimuth_end: Option<f64>Implementations§
Source§impl SphericalBounds
impl SphericalBounds
Sourcepub fn to_cartesian(&self) -> Option<CartesianBounds>
pub fn to_cartesian(&self) -> Option<CartesianBounds>
Converts the spherical bounds into Cartesian bounds.
The result will be bigger than the actual Cartesian bounds, since it is not possible
to calculate the exact Cartesian bounds without iterating over all points.
Will return None if the spherical range is not defined.
Trait Implementations§
Source§impl Clone for SphericalBounds
impl Clone for SphericalBounds
Source§fn clone(&self) -> SphericalBounds
fn clone(&self) -> SphericalBounds
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SphericalBounds
impl Debug for SphericalBounds
Source§impl Default for SphericalBounds
impl Default for SphericalBounds
Source§fn default() -> SphericalBounds
fn default() -> SphericalBounds
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SphericalBounds
impl RefUnwindSafe for SphericalBounds
impl Send for SphericalBounds
impl Sync for SphericalBounds
impl Unpin for SphericalBounds
impl UnwindSafe for SphericalBounds
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