pub struct PathGround {
pub path: Vec<Point3<f64>>,
pub camera_heights: Vec<f64>,
}Expand description
The ground along the camera’s path. The camera moves over the ground, so
a scene point’s height is measured from the camera where it passed
nearest: on a road that climbs or falls, the ground then lies at one
depth below the path, the camera’s height above it. That height is found
for each stretch of the path (path_stretch metres either way), so a
camera whose height changes (a hand lowering it) is followed too. The
ground under any spot is the camera’s height below the nearest point of
the path.
Fields§
§path: Vec<Point3<f64>>Camera centres along the path, in order.
camera_heights: Vec<f64>The camera’s height above the ground at each of them.
Implementations§
Source§impl PathGround
impl PathGround
Sourcepub fn estimate(
path: &[Point3<f64>],
points: &[Point3<f64>],
params: &GroundParams,
) -> Option<Self>
pub fn estimate( path: &[Point3<f64>], points: &[Point3<f64>], params: &GroundParams, ) -> Option<Self>
For each point of the path, the densest band of three bin-high
layers of the heights of the scene points whose nearest path point
lies within path_stretch along the path, each measured from that
nearest point, at least min_below_camera down, with min_points. A stretch without
such a layer takes the nearest stretch’s. None if none has one.
Sourcepub fn camera_height_at(&self, xy: &Vector2<f64>) -> f64
pub fn camera_height_at(&self, xy: &Vector2<f64>) -> f64
The camera’s height above the ground where it passed nearest to xy.
Trait Implementations§
Source§impl Clone for PathGround
impl Clone for PathGround
Source§impl Debug for PathGround
impl Debug for PathGround
Source§impl PartialEq for PathGround
impl PartialEq for PathGround
impl StructuralPartialEq for PathGround
Auto Trait Implementations§
impl Forget for PathGround
impl Freeze for PathGround
impl Move for PathGround
impl RefUnwindSafe for PathGround
impl Send for PathGround
impl Sync for PathGround
impl Unpin for PathGround
impl UnsafeUnpin for PathGround
impl UnwindSafe for PathGround
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.