pub struct SkyGridCell {
pub direction: Horizontal,
pub solid_angle: Steradians,
}Expand description
A single cell of a SkyGrid: a sky direction together with its
approximate solid angle.
Fields§
§direction: HorizontalSky direction (altitude = polar, azimuth) in the siderust Horizontal frame.
direction.polar— altitude above the horizon, in[-90°, +90°]direction.azimuth— azimuth from North (clockwise), in[0°, 360°)
solid_angle: SteradiansApproximate solid angle subtended by this cell.
- Uniform grid:
dΩ = cos(alt) · Δalt_rad · Δaz_rad. - Equal-area grid:
dΩ = cos(alt) · Δalt_rad · (2π / n_az(alt)).
Trait Implementations§
Source§impl Clone for SkyGridCell
impl Clone for SkyGridCell
impl Copy for SkyGridCell
Auto Trait Implementations§
impl Freeze for SkyGridCell
impl RefUnwindSafe for SkyGridCell
impl Send for SkyGridCell
impl Sync for SkyGridCell
impl Unpin for SkyGridCell
impl UnsafeUnpin for SkyGridCell
impl UnwindSafe for SkyGridCell
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T, U> Imply<T> for U
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> UsingEngine for T
impl<T> UsingEngine for T
Source§fn using<'a, Ctx>(&'a self, engine: &'a Ctx) -> WithEngine<'a, Self, Ctx>where
Ctx: TransformContext,
fn using<'a, Ctx>(&'a self, engine: &'a Ctx) -> WithEngine<'a, Self, Ctx>where
Ctx: TransformContext,
Wrap this coordinate with a custom transform context for the next
transformation call.