-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
still need to implement proper screw transformation matrices with rodrigues rotation
- Loading branch information
1 parent
a61dca1
commit d09e661
Showing
7 changed files
with
67 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#include <vector> | ||
#include <string> | ||
#include <fstream> | ||
#include <cmath> | ||
#include <cstdio> | ||
|
||
#include "tinycombination.hpp" | ||
|
||
#include "vlm.hpp" | ||
#include "vlm_utils.hpp" | ||
|
||
using namespace vlm; | ||
|
||
int main(int argc, char **argv) { | ||
const std::vector<std::string> meshes = {"../../../../mesh/infinite_rectangular_5x200.x"}; | ||
const std::vector<std::string> backends = get_available_backends(); | ||
|
||
auto solvers = tiny::make_combination(meshes, backends); | ||
|
||
for (const auto& [mesh_name, backend_name] : solvers) { | ||
|
||
auto translation = [&](f32 t) -> linalg::alias::float4x4 { | ||
return linalg::translation_matrix(linalg::alias::float3{ | ||
-1.0f*t, | ||
0.0f, | ||
std::sin(0.2f * t) | ||
}); | ||
}; | ||
|
||
// auto rotation = [&](f32 t) -> linalg::alias::float4x4 { | ||
// return linalg::translation_matrix(linalg::alias::float3{ | ||
// -1.0f*t, | ||
// 0.0f, | ||
// std::sin(0.2f * t) | ||
// }); | ||
// }; | ||
|
||
auto wing_pose = [&](f32 t) -> linalg::alias::float4x4 { | ||
return translation(t); | ||
}; | ||
|
||
} | ||
|
||
return 0; | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters