pub struct LocalAxis {
pub x: Vec3A,
pub z: Vec3A,
}Expand description
PMX bone local-axis descriptor (bone-local X/Z directions from the file).
The runtime builds a defensive right-handed orthonormal frame from these vectors for IK angle-limit evaluation only. Ordinary pose evaluation does not reorient bones by this frame.
Fields§
§x: Vec3A§z: Vec3AImplementations§
Source§impl LocalAxis
impl LocalAxis
pub fn new(x: Vec3A, z: Vec3A) -> Self
Sourcepub fn basis_quat(self) -> Option<Quat>
pub fn basis_quat(self) -> Option<Quat>
Build a right-handed orthonormal basis quaternion whose columns are
(x, y, z) in bone-local space: y = normalize(z × x), z = x × y.
Returns None when inputs are non-finite or degenerate (near-zero /
nearly parallel axes). Callers must treat None as “no local axis”.
Trait Implementations§
impl Copy for LocalAxis
impl StructuralPartialEq for LocalAxis
Auto Trait Implementations§
impl Freeze for LocalAxis
impl RefUnwindSafe for LocalAxis
impl Send for LocalAxis
impl Sync for LocalAxis
impl Unpin for LocalAxis
impl UnsafeUnpin for LocalAxis
impl UnwindSafe for LocalAxis
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more