_new point class and update_
- adds a new point class * point/ vector math (p + v = p, p - p = v, etc.) * points can be transformed by matrices/quats * wraps 'place vector' type vectors that have no magnitude - wrapped toXXX() methods work correctly * toXXX() will NOT wrap data (this is due to the fact that wrapped data cannot be converted) * added a 'wrapped' attribute to mathutils classes to determine wether the object is accessing python or blender data - added the ability to negate vectors/points with "-vec" * deprecated vector.negate() - added the ability to shorhand inverse matrices with "~mat" (tilde) - conversion between vector/point with toXXX() methods
This commit is contained in:
@@ -48,6 +48,7 @@ typedef struct _Matrix {
|
||||
float *contigPtr; //1D array of data (alias)
|
||||
int rowSize;
|
||||
int colSize;
|
||||
int wrapped; //is wrapped data?
|
||||
PyObject *coerced_object;
|
||||
} MatrixObject;
|
||||
/*coerced_object is a pointer to the object that it was
|
||||
|
||||
Reference in New Issue
Block a user