Remove unused code.
These appear to have been copied from elsewhere and never used.
This commit is contained in:
@@ -54,8 +54,6 @@ abstract Matrix3(Float32Array) to Float32Array
|
|||||||
**/
|
**/
|
||||||
public var ty(get, set):Float;
|
public var ty(get, set):Float;
|
||||||
|
|
||||||
private static var __identity = new Matrix3();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Creates a new `Matrix` instance
|
Creates a new `Matrix` instance
|
||||||
@param a (Optional) An initial a component value (default is 1)
|
@param a (Optional) An initial a component value (default is 1)
|
||||||
@@ -389,12 +387,6 @@ abstract Matrix3(Float32Array) to Float32Array
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
// public inline function mult (m:Matrix3) {
|
|
||||||
// var result = clone ();
|
|
||||||
// result.concat (m);
|
|
||||||
// return result;
|
|
||||||
// }
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Applies rotation to the current matrix
|
Applies rotation to the current matrix
|
||||||
@param theta A rotation value in degrees
|
@param theta A rotation value in degrees
|
||||||
@@ -482,40 +474,6 @@ abstract Matrix3(Float32Array) to Float32Array
|
|||||||
set_ty(ty);
|
set_ty(ty);
|
||||||
}
|
}
|
||||||
|
|
||||||
@:dox(hide) @:noCompletion public inline function to3DString(roundPixels:Bool = false):String
|
|
||||||
{
|
|
||||||
// identity matrix
|
|
||||||
// [a,b,tx,0],
|
|
||||||
// [c,d,ty,0],
|
|
||||||
// [0,0,1, 0],
|
|
||||||
// [0,0,0, 1]
|
|
||||||
//
|
|
||||||
// matrix3d(a, b, 0, 0, c, d, 0, 0, 0, 0, 1, 0, tx, ty, 0, 1)
|
|
||||||
|
|
||||||
if (roundPixels)
|
|
||||||
{
|
|
||||||
return "matrix3d("
|
|
||||||
+ a
|
|
||||||
+ ", "
|
|
||||||
+ b
|
|
||||||
+ ", "
|
|
||||||
+ "0, 0, "
|
|
||||||
+ c
|
|
||||||
+ ", "
|
|
||||||
+ d
|
|
||||||
+ ", "
|
|
||||||
+ "0, 0, 0, 0, 1, 0, "
|
|
||||||
+ Std.int(tx)
|
|
||||||
+ ", "
|
|
||||||
+ Std.int(ty)
|
|
||||||
+ ", 0, 1)";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return "matrix3d(" + a + ", " + b + ", " + "0, 0, " + c + ", " + d + ", " + "0, 0, 0, 0, 1, 0, " + tx + ", " + ty + ", 0, 1)";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@:dox(hide) @:noCompletion @:to public inline function toCairoMatrix3():CairoMatrix3
|
@:dox(hide) @:noCompletion @:to public inline function toCairoMatrix3():CairoMatrix3
|
||||||
{
|
{
|
||||||
return new CairoMatrix3(a, b, c, d, tx, ty);
|
return new CairoMatrix3(a, b, c, d, tx, ty);
|
||||||
|
|||||||
Reference in New Issue
Block a user