Skip to content
This repository has been archived by the owner on Feb 5, 2021. It is now read-only.
/ quaternion_averager Public archive

A small library for quaternion averaging written in rust.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

broke/quaternion_averager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docs.rs

This crate has been DEPRECATED in favor of the mean_of function for UnitQuaternion in nalgebra

Description

A small library for quaternion averaging written in rust.

Usage

use quaternion_averager::QuaternionAverager;
use nalgebra::{
    geometry::Quaternion,
    geometry::UnitQuaternion,
};

let mut qa = QuaternionAverager::new();
let q1 = Quaternion::new(0.9961947f32, 0.0871557f32, 0f32, 0f32);
let q1 = UnitQuaternion::from_quaternion(q1);
let q2 = Quaternion::new(0.9848078f32, 0.1736482f32, 0f32, 0f32);
let q2 = UnitQuaternion::from_quaternion(q2);
qa.add_quaternion(&q1);
qa.add_quaternion_weighted(&q2, 1f32);
let qavg = qa.calc_average();

println!("The average of {} and {} is {}", q1, q2, qavg);

License

MIT or Apache-2.0

About

A small library for quaternion averaging written in rust.

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages