47 mutable float matrix[4][4];
48 mutable float size[3];
54 void copy(Matrix &r, Matrix &a);
72 void get_matrix(DMatrix &matrix,
bool transposed =
false,
int precision = -1)
const;
74 bool transposed =
false,
76 bool inverted =
false)
const;
80 const Matrix &transform,
82 bool inverted =
false);
84 const Matrix &transform,
88 void add_transform(
const Matrix &matrix,
bool inverted =
false);
94 static void sanitize(Matrix &matrix,
int precision);
95 static void sanitize(DMatrix &matrix,
int precision);
General operations, lookup, etc. for blender objects.
MINLINE void copy_v4_v4(float r[4], const float a[4])
btMatrix3x3 inverse() const
Return the inverse of the matrix.
btMatrix3x3 transpose() const
Return the transpose of the matrix.
float(& rotation() const)[3]
void add_transform(Matrix &to, const Matrix &transform, const Matrix &from, bool inverted=false)
void add_inverted_transform(Matrix &to, const Matrix &transform, const Matrix &from)
void set_transform(Object *ob)
float(& scale() const)[3]
void get_matrix(DMatrix &matrix, bool transposed=false, int precision=-1) const
float(& location() const)[3]
void apply_transform(Matrix &to, const Matrix &transform, const Matrix &from, bool inverse=false)
static void sanitize(Matrix &matrix, int precision)
bool in_range(const BCMatrix &other, float distance) const
void rotate_to(Matrix &mat_to)
BCQuat(const BCQuat &other)
draw_view in_light_buf[] float