#[repr(C)]pub struct Pose {
pub orientation: Quat,
pub position: Vec3,
}Fields§
§orientation: Quat§position: Vec3Implementations§
Source§impl Pose
impl Pose
pub fn new(orientation: Quat, position: Vec3) -> Self
pub fn transform_vec3(&self, v: &Vec3) -> Vec3
pub fn multiply(a: &Pose, b: &Pose) -> Self
pub fn invert(&self) -> Self
pub fn to_mat4(&self) -> Mat4
pub fn from_lerp(a: Pose, b: Pose, f: f32) -> Self
pub fn from_slerp_orientation(a: Pose, b: Pose, f: f32) -> Self
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> 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