Matrix3D.hx 1.5 KB

12345678910111213141516171819202122232425262728293031
  1. package flash.geom;
  2. extern class Matrix3D {
  3. var rawData : flash.Vector<Float>;
  4. var position : Vector3D;
  5. var determinant(default,null) : Float;
  6. function new( ?data : flash.Vector<Float> ) : Void;
  7. function transpose() : Void;
  8. function prependTranslation( x : Float, y : Float, z : Float ) : Void;
  9. function deltaTransformVector( v : Vector3D ) : Vector3D;
  10. function pointAt( ?pos : Vector3D, ?at : Vector3D, ?up : Vector3D ) : Void;
  11. function transformVectors( vin : flash.Vector<Float>, vout : flash.Vector<Float> ) : Void;
  12. function prependRotation( ?degrees : Float, ?axis : Vector3D, ?pivotPoint : Vector3D ) : Void;
  13. function prepend( rhs : Matrix3D ) : Void;
  14. function transformVector( v : Vector3D ) : Vector3D;
  15. function appendScale( xScale : Float, yScale : Float, zScale : Float ) : Void;
  16. function decompose( ?orientation : Orientation3D ) : flash.Vector<Vector3D>;
  17. function interpolateTo( toMat : Matrix3D, percent : Float ) : Void;
  18. function invert() : Bool;
  19. function appendTranslation( x : Float, y : Float, z : Float ) : Void;
  20. function appendRotation( ?degrees : Float, ?axis : Vector3D, ?pivotPoint : Vector3D ) : Void;
  21. function append( lhs : Matrix3D ) : Void;
  22. function prependScale( xScale : Float, yScale : Float, zScale : Float ) : Void;
  23. function clone() : Matrix3D;
  24. function identity() : Void;
  25. function recompose( ?components : flash.Vector<Vector3D>, ?orientation : Orientation3D ) : Bool;
  26. static function interpolate( thisMat : Matrix3D, toMat : Matrix3D, percent : Float ) : Matrix3D;
  27. }