Struct trackball::Frame [−][src]
pub struct Frame<N: Copy + RealField> { /* fields omitted */ }
Expand description
Frame wrt camera eye and target.
Implementations
Sets eye position inclusive its roll attitude and target position in world space.
Sets eye position inclusive its roll attitude in world space preserving target position.
Sets target position in world space preserving eye position inclusive its roll attitude.
Sets distance between eye and target preserving target position.
Scales distance between eye and target by ratio preserving target position.
Scales distance between eye and point in camera space by ratio preserving target position.
Scales distance between eye and point in world space by ratio preserving target position.
Slides camera eye and target by vector in camera space.
Slides camera eye and target by vector in world space.
Orbits eye by rotation in camera space around target.
Orbits eye by rotation in camera space around point in camera space.
Orbits eye by rotation in world space around target.
Orbits eye by rotation in world space around point in world space.
Orbits target around eye by pitch and yaw preserving roll attitude aka first person view.
Use fixed Self::yaw_axis()
by capturing it when entering first person view.
Positive x-axis in camera space pointing from left to right.
Positive y-axis in camera space pointing from bottom to top.
Positive z-axis in camera space pointing from back to front.
Positive x-axis in world space pointing from left to right.
Positive y-axis in world space pointing from bottom to top.
Positive z-axis in world space pointing from back to front.
Eye attitude via intrinsic (pitch, yaw, roll)
angles, see Self::set_angles()
.
Sets eye attitude via intrinsic angles.
Eye rotation occurs in the sense prescribed by the right-hand rule in the following order:
- roll about
Self::roll_axis()
within ±π, - pitch about rolled
Self::pitch_axis()
within ±π, - yaw about rolled and pitched
Self::yaw_axis()
within ±π/2.
Trait Implementations
Auto Trait Implementations
impl<N> RefUnwindSafe for Frame<N> where
N: RefUnwindSafe,
impl<N> UnwindSafe for Frame<N> where
N: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.