pub struct SphericalPolygonArea {
pub radius: f64,
}Expand description
Spherical surface area for a Polygon — outer ring area plus the
sum of (oppositely-wound, hence negatively-signed) interior-ring
areas.
Separate from SphericalArea for the same coherence reason
ShoelacePolygonArea is
separate from ShoelaceArea.
Fields§
§radius: f64Sphere radius, forwarded to the per-ring SphericalArea.
Implementations§
Source§impl SphericalPolygonArea
impl SphericalPolygonArea
Sourcepub const EARTH: Self
pub const EARTH: Self
Mean Earth radius in metres. See SphericalArea::EARTH.
Sourcepub const UNIT: Self
pub const UNIT: Self
Unit sphere. See SphericalArea::UNIT.
Trait Implementations§
Source§impl<P> AreaStrategy<P> for SphericalPolygonArea
Available on crate feature std only.
impl<P> AreaStrategy<P> for SphericalPolygonArea
Available on crate feature
std only.Source§impl Clone for SphericalPolygonArea
impl Clone for SphericalPolygonArea
Source§fn clone(&self) -> SphericalPolygonArea
fn clone(&self) -> SphericalPolygonArea
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 SphericalPolygonArea
Source§impl Debug for SphericalPolygonArea
impl Debug for SphericalPolygonArea
Auto Trait Implementations§
impl Freeze for SphericalPolygonArea
impl RefUnwindSafe for SphericalPolygonArea
impl Send for SphericalPolygonArea
impl Sync for SphericalPolygonArea
impl Unpin for SphericalPolygonArea
impl UnsafeUnpin for SphericalPolygonArea
impl UnwindSafe for SphericalPolygonArea
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