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> Archive for Bound<N>
Available on crate feature rkyv
only.
impl<N: Copy + RealField> Archive for Bound<N>
rkyv
only.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>,
source§impl<De: Fallible + ?Sized, N: Copy + RealField> Deserialize<Bound<N>, De> for Bound<N>
Available on crate feature rkyv
only.
impl<De: Fallible + ?Sized, N: Copy + RealField> Deserialize<Bound<N>, De> for Bound<N>
rkyv
only.source§impl<N: PartialEq + Copy + RealField> PartialEq for Bound<N>
impl<N: PartialEq + Copy + RealField> PartialEq for Bound<N>
source§impl<Ser: Fallible + ?Sized, N: Copy + RealField> Serialize<Ser> for Bound<N>
Available on crate feature rkyv
only.
impl<Ser: Fallible + ?Sized, N: Copy + RealField> Serialize<Ser> for Bound<N>
rkyv
only.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> 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> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
source§impl<T> ArchiveUnsized for Twhere
T: Archive,
impl<T> ArchiveUnsized for Twhere
T: Archive,
§type Archived = <T as Archive>::Archived
type Archived = <T as Archive>::Archived
Archive
, it may be unsized. Read more§type MetadataResolver = ()
type MetadataResolver = ()
source§unsafe fn resolve_metadata(
&self,
_: usize,
_: <T as ArchiveUnsized>::MetadataResolver,
_: *mut <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata
)
unsafe fn resolve_metadata( &self, _: usize, _: <T as ArchiveUnsized>::MetadataResolver, _: *mut <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata )
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<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
source§impl<T, S> SerializeUnsized<S> for T
impl<T, S> SerializeUnsized<S> 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.