pub struct Wedge {
pub theta_min: f64,
pub theta_max: f64,
}Expand description
A longitude wedge: all points with azimuthal angle theta between theta_min and
theta_max.
Supports wrap-around: if theta_min > theta_max, the wedge spans across the 0/2π
boundary (e.g. 350° to 10°).
Fields§
§theta_min: f64§theta_max: f64Implementations§
Trait Implementations§
Source§impl Contains for Wedge
impl Contains for Wedge
Source§fn contains(&self, point: &SphericalPoint) -> bool
fn contains(&self, point: &SphericalPoint) -> bool
Returns
true if point lies inside (or on the boundary of) this region.impl Copy for Wedge
Source§impl<'de> Deserialize<'de> for Wedge
impl<'de> Deserialize<'de> for Wedge
Source§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
impl StructuralPartialEq for Wedge
Auto Trait Implementations§
impl Freeze for Wedge
impl RefUnwindSafe for Wedge
impl Send for Wedge
impl Sync for Wedge
impl Unpin for Wedge
impl UnsafeUnpin for Wedge
impl UnwindSafe for Wedge
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more