#[repr(C)]pub struct Pose {
pub orientation: Quat,
pub position: Vec3,
}
Fields§
§orientation: Quat
§position: Vec3
Implementations§
Source§impl Pose
impl Pose
pub fn new(orientation: Quat, position: Vec3) -> Pose
pub fn transform_vec3(&self, v: &Vec3) -> Vec3
pub fn multiply(a: &Pose, b: &Pose) -> Pose
pub fn invert(&self) -> Pose
pub fn to_mat4(&self) -> Mat4
pub fn from_lerp(a: Pose, b: Pose, f: f32) -> Pose
pub fn from_slerp_orientation(a: Pose, b: Pose, f: f32) -> Pose
Trait Implementations§
impl Copy for Pose
impl StructuralPartialEq for Pose
Auto Trait Implementations§
impl Freeze for Pose
impl RefUnwindSafe for Pose
impl Send for Pose
impl Sync for Pose
impl Unpin for Pose
impl UnwindSafe for Pose
Blanket Implementations§
Source§impl<T> ActionTrait for T
impl<T> ActionTrait for T
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