bringing all back together

This commit is contained in:
Hartmut Seichter 2019-01-22 14:16:03 +01:00
parent 8d563cfc22
commit 4ff557d446
18 changed files with 214 additions and 419 deletions

View file

@ -5,25 +5,25 @@ add_executable(pwcore_test_matrix
target_link_libraries(pwcore_test_matrix
pwcore)
#add_executable(pwcore_test_vector
# pwcore_test_vector.cpp
# )
add_executable(pwcore_test_vector
pwcore_test_vector.cpp
)
#target_link_libraries(pwcore_test_vector
# pwcore)
target_link_libraries(pwcore_test_vector
pwcore)
#add_executable(pwcore_test_quaternion
# pwcore_test_quaternion.cpp
# )
add_executable(pwcore_test_quaternion
pwcore_test_quaternion.cpp
)
#target_link_libraries(pwcore_test_quaternion
# pwcore)
target_link_libraries(pwcore_test_quaternion
pwcore)
#add_executable(pwcore_test_axisangle
# pwcore_test_axisangle.cpp
# )
add_executable(pwcore_test_axisangle
pwcore_test_axisangle.cpp
)
#target_link_libraries(pwcore_test_axisangle
# pwcore)
target_link_libraries(pwcore_test_axisangle
pwcore)

View file

@ -13,6 +13,5 @@ int main(int argc,char **argv) {
std::cout << "aa as quaternion as matrix = " << pw::serialize::matrix(qf.to_matrix()) << std::endl;
std::cout << "aa.matrix() = " << pw::serialize::matrix(qf.to_matrix()) << std::endl;
return 0;
}

View file

@ -36,6 +36,7 @@ int main(int argc,char **argv) {
auto v2_b = m22_inv * v2_f;
vector2_<float> r_m22 = m22.row(0).transposed();
vector2_<float> c_m22 = m22.column(1);
auto r_m22_h = r_m22.homogenous();

View file

@ -6,9 +6,16 @@
int main(int argc,char **argv) {
pw::vector2_<float> v2;
pw::vector2_<float> v2_A = { 3.2, 1.2 };
pw::vector2_<float> v2_B = { 3.2, 1.2 };
v2.x = 0.1f;
auto AB_lerp = pw::vector2f::lerp(v2_A,v2_B,0.5);
// v2 = 0.1f;
// pw::vector4_<float> v4;
// pw::vector3f v;