pub struct VerticalPerspective { /* private fields */ }Expand description
Near-sided vertical perspective projection onto a tangent plane.
Implementations§
Source§impl VerticalPerspective
impl VerticalPerspective
Sourcepub fn new(center: GeoCoord, camera_height: f64) -> Self
pub fn new(center: GeoCoord, camera_height: f64) -> Self
Create a vertical perspective projection centered at center.
camera_height is the viewer height above the ellipsoid surface, in
meters, and must be positive.
Sourcepub fn camera_height(&self) -> f64
pub fn camera_height(&self) -> f64
Viewer height above the surface in meters.
Sourcepub fn horizon_central_angle(&self) -> f64
pub fn horizon_central_angle(&self) -> f64
Maximum visible central angle from the projection center, in radians.
Sourcepub fn project_checked(&self, geo: &GeoCoord) -> Option<WorldCoord>
pub fn project_checked(&self, geo: &GeoCoord) -> Option<WorldCoord>
Checked projection that rejects points beyond the visible horizon.
Trait Implementations§
Source§impl Clone for VerticalPerspective
impl Clone for VerticalPerspective
Source§fn clone(&self) -> VerticalPerspective
fn clone(&self) -> VerticalPerspective
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 VerticalPerspective
impl Debug for VerticalPerspective
Source§impl PartialEq for VerticalPerspective
impl PartialEq for VerticalPerspective
Source§impl Projection for VerticalPerspective
impl Projection for VerticalPerspective
Source§fn project(&self, geo: &GeoCoord) -> WorldCoord
fn project(&self, geo: &GeoCoord) -> WorldCoord
Project a geographic coordinate to world space (meters).
Source§fn unproject(&self, world: &WorldCoord) -> GeoCoord
fn unproject(&self, world: &WorldCoord) -> GeoCoord
Inverse-project world coordinates back to geographic.
Source§fn scale_factor(&self, geo: &GeoCoord) -> f64
fn scale_factor(&self, geo: &GeoCoord) -> f64
Local linear scale factor at the given geographic coordinate. Read more
Source§fn projection_bounds(&self) -> GeoBounds
fn projection_bounds(&self) -> GeoBounds
The geographic bounding box of valid input for this projection. Read more
impl Copy for VerticalPerspective
impl StructuralPartialEq for VerticalPerspective
Auto Trait Implementations§
impl Freeze for VerticalPerspective
impl RefUnwindSafe for VerticalPerspective
impl Send for VerticalPerspective
impl Sync for VerticalPerspective
impl Unpin for VerticalPerspective
impl UnsafeUnpin for VerticalPerspective
impl UnwindSafe for VerticalPerspective
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