pub struct CosMatrix { /* private fields */ }Implementations§
Source§impl CosMatrix
impl CosMatrix
pub fn unit() -> Self
pub fn new(data: [[f64; 3]; 3]) -> Self
pub fn from_matrix(m: &Matrix<3, 3, f64>) -> Self
Sourcepub fn set_row_vector_by_array(&mut self, row: usize, data: [f64; 3])
pub fn set_row_vector_by_array(&mut self, row: usize, data: [f64; 3])
Sourcepub fn set_col_vector_by_array(&mut self, col: usize, data: [f64; 3])
pub fn set_col_vector_by_array(&mut self, col: usize, data: [f64; 3])
pub fn get_x_row_vector(&self) -> Vector3<Coef>
pub fn get_y_row_vector(&self) -> Vector3<Coef>
pub fn get_z_row_vector(&self) -> Vector3<Coef>
pub fn get_x_col_vector(&self) -> Vector3<Coef>
pub fn get_y_col_vector(&self) -> Vector3<Coef>
pub fn get_z_col_vector(&self) -> Vector3<Coef>
pub fn transfer(&self) -> Self
pub fn to_array(&self) -> [[f64; 3]; 3]
Sourcepub fn to_quaternion(&self) -> Quaternion
pub fn to_quaternion(&self) -> Quaternion
这个函数的计算结果是有问题的,我现在的单测通过不了,为了进度,我先把这个函数扔下,等后面有时间再改。
pub fn product_vector<T: VectorQuantity + Default>( &self, vec: &Vector3<T>, ) -> Vector3<T>
pub fn product(&self, other: &CosMatrix) -> CosMatrix
pub fn to_pry(&self) -> Vector3<Angular>
pub fn to_rpy(&self) -> Vector3<Angular>
pub fn to_matrix(&self) -> Matrix<3, 3, f64>
pub fn to_euler(&self, seq: &RotationSeq) -> Vector3<Angular>
Trait Implementations§
impl Copy for CosMatrix
Auto Trait Implementations§
impl Freeze for CosMatrix
impl RefUnwindSafe for CosMatrix
impl Send for CosMatrix
impl Sync for CosMatrix
impl Unpin for CosMatrix
impl UnsafeUnpin for CosMatrix
impl UnwindSafe for CosMatrix
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