pub struct SphericalArea {
pub radius: f64,
}Expand description
Spherical surface area via the trapezoidal spherical-excess rule.
Carries the sphere radius; the result of
AreaStrategy::area is in squared radius units (m² for
SphericalArea::EARTH, steradians for SphericalArea::UNIT).
Default::default() produces SphericalArea::EARTH.
Mirrors boost::geometry::strategy::area::spherical<> from
strategies/spherical/area.hpp.
Fields§
§radius: f64Sphere radius. The area comes back in these units squared.
Implementations§
Source§impl SphericalArea
impl SphericalArea
Trait Implementations§
Source§impl<R> AreaStrategy<R> for SphericalAreawhere
R: Ring,
<R::Point as Point>::Cs: CoordinateSystem + HasAngularUnits,
<<R::Point as Point>::Cs as CoordinateSystem>::Family: SameAs<SphericalFamily>,
R::Point: Point<Scalar = f64>,
Available on crate feature std only.
impl<R> AreaStrategy<R> for SphericalAreawhere
R: Ring,
<R::Point as Point>::Cs: CoordinateSystem + HasAngularUnits,
<<R::Point as Point>::Cs as CoordinateSystem>::Family: SameAs<SphericalFamily>,
R::Point: Point<Scalar = f64>,
Available on crate feature
std only.Source§impl Clone for SphericalArea
impl Clone for SphericalArea
Source§fn clone(&self) -> SphericalArea
fn clone(&self) -> SphericalArea
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SphericalArea
Source§impl Debug for SphericalArea
impl Debug for SphericalArea
Auto Trait Implementations§
impl Freeze for SphericalArea
impl RefUnwindSafe for SphericalArea
impl Send for SphericalArea
impl Sync for SphericalArea
impl Unpin for SphericalArea
impl UnsafeUnpin for SphericalArea
impl UnwindSafe for SphericalArea
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