Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/axis.cc')
-rw-r--r--src/math/axis.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/math/axis.cc b/src/math/axis.cc
index 8273469..7281047 100644
--- a/src/math/axis.cc
+++ b/src/math/axis.cc
@@ -35,6 +35,15 @@ void Axis::assign(const Axis & other)
}
}
+void Axis::assign(const btMatrix3x3 & other)
+{
+ for (size_t i = 0; i < 3; i++) {
+ for (size_t j = 0; j < 3; j++) {
+ axis_vector[i][j] = other[i][j];
+ }
+ }
+}
+
Axis & Axis::operator=(const Axis & other)
{
assign(other);