pub struct Bound<N: Copy + RealField> {
pub transform: Isometry3<N>,
pub min_target: Point3<N>,
pub max_target: Point3<N>,
pub min_eye: Point3<N>,
pub max_eye: Point3<N>,
pub min_up: Point3<N>,
pub max_up: Point3<N>,
pub min_distance: N,
pub max_distance: N,
pub hysteresis: N,
}
Expand description
Fields§
§transform: Isometry3<N>
Isometry in world space of bound inversely transforming target and eye positions.
min_target: Point3<N>
Minimum components of target position in world space. Default splats N::MIN
.
max_target: Point3<N>
Maximum components of target position in world space. Default splats N::MAX
.
min_eye: Point3<N>
Minimum components of eye position in world space. Default splats N::MIN
.
max_eye: Point3<N>
Maximum components of eye position in world space. Default splats N::MAX
.
min_up: Point3<N>
Minimum components of up axis in world space following yaw. Default splats N::MIN
.
max_up: Point3<N>
Maximum components of up axis in world space following yaw. Default splats N::MAX
.
min_distance: N
Minimum distance of eye from target. Default is N::zero()
.
max_distance: N
Maximum distance of eye from target. Default is N::MAX
.
hysteresis: N
Epsilon allowing clamped Delta
to more likely pass revalidation.
Default is AbsDiffEq::default_epsilon()
.sqrt()
.
Trait Implementations§
Source§impl<N: Copy + RealField> Clamp<N> for Bound<N>
impl<N: Copy + RealField> Clamp<N> for Bound<N>
Source§fn target(&self, frame: &Frame<N>) -> Option<Plane<N>>
fn target(&self, frame: &Frame<N>) -> Option<Plane<N>>
Find any boundary plane exceeded by target position.
Source§fn eye(&self, frame: &Frame<N>) -> Option<Plane<N>>
fn eye(&self, frame: &Frame<N>) -> Option<Plane<N>>
Find any boundary plane exceeded by eye position.
Source§impl<'de, N> Deserialize<'de> for Bound<N>
impl<'de, N> Deserialize<'de> for Bound<N>
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>,
impl<N: Copy + Copy + RealField> Copy for Bound<N>
impl<N: Eq + Copy + RealField> Eq for Bound<N>
impl<N: Copy + RealField> StructuralPartialEq for Bound<N>
Auto Trait Implementations§
impl<N> Freeze for Bound<N>where
N: Freeze,
impl<N> RefUnwindSafe for Bound<N>where
N: RefUnwindSafe,
impl<N> Send for Bound<N>
impl<N> Sync for Bound<N>
impl<N> Unpin for Bound<N>where
N: Unpin,
impl<N> UnwindSafe for Bound<N>where
N: UnwindSafe,
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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.