well missing stuff from commit before ...

This commit is contained in:
Hartmut Seichter 2019-01-27 15:22:55 +01:00
parent f95231f339
commit ad13cea0ca
5 changed files with 77 additions and 34 deletions

View file

@ -28,6 +28,26 @@ int main(int argc,char **argv) {
std::cout << "z-axis" << std::endl;
aa.axis = pw::vector3::z_axis();
aa.angle = pw::deg_to_rad(45.f);
std::cout << "aa.matrix() = " << std::endl << pw::serialize::matrix(aa.to_matrix()) << std::endl;
std::cout << "from matrix" << std::endl;
pw::matrix4x4f mrot; mrot.zero();
mrot(0,0) = 1;
mrot(2,1) = 1;
mrot(1,2) = -1;
pw::axisanglef aa_fm = pw::axisangle::from_matrix(mrot);
std::cout << pw::serialize::matrix(aa_fm.axis.transposed()) << " " << pw::rad_to_deg(aa_fm.angle) << "deg" << std::endl;
return 0;
}