28 #include <boost/operators.hpp>
40 private boost::equality_comparable<Mat4>,
41 private boost::additive<Mat4>,
42 private boost::multiplicative<Mat4, Real>
45 static Mat4 Identity();
74 explicit Mat4(
const float[16]);
76 explicit Mat4(
const double[16]);
83 const Real&
At(std::size_t r, std::size_t c)
const
86 throw std::out_of_range(
"indices must be smaller than 4");
91 Real&
At(std::size_t r, std::size_t c)
94 throw std::out_of_range(
"indices must be smaller than 4");
101 assert(r<4 && c < 4);
107 assert(r<4 && c < 4);
121 Mat3 ExtractRotation()
const;
122 void PasteRotation(
const Mat3& m);
123 Vec3 ExtractTranslation()
const;
124 void PasteTranslation(
const Vec3& v);
132 void set(
float i00,
float i01,
float i02,
float i03,
float i10,
float i11,
float i12,
133 float i13,
float i20,
float i21,
float i22,
float i23,
float i30,
float i31,
float i32,
135 void set(
double i00,
double i01,
double i02,
double i03,
double i10,
double i11,
double
136 i12,
double i13,
double i20,
double i21,
double i22,
double i23,
double i30,
double i31,
137 double i32,
double i33);
bool DLLEXPORT_OST_GEOM operator==(const Line2 &l1, const Line2 &l2)
std::vector< Mat4 > Mat4List
const Real & At(std::size_t r, std::size_t c) const
Three dimensional vector class, using Real precision.
const Real * Data() const
Real & operator()(std::size_t r, std::size_t c)
const Real & operator()(std::size_t r, std::size_t c) const
std::ostream & operator<<(std::ostream &os, const AlignedCuboid &c)
#define DLLEXPORT_OST_GEOM
Real & At(std::size_t r, std::size_t c)