Update Files

This commit is contained in:
2025-01-22 16:18:30 +01:00
parent ed4603cf95
commit a36294b518
16718 changed files with 2960346 additions and 0 deletions

View File

@ -0,0 +1,18 @@
package flash.geom;
extern class ColorTransform {
var alphaMultiplier : Float;
var alphaOffset : Float;
var blueMultiplier : Float;
var blueOffset : Float;
@:flash.property var color(get,set) : UInt;
var greenMultiplier : Float;
var greenOffset : Float;
var redMultiplier : Float;
var redOffset : Float;
function new(redMultiplier : Float = 1, greenMultiplier : Float = 1, blueMultiplier : Float = 1, alphaMultiplier : Float = 1, redOffset : Float = 0, greenOffset : Float = 0, blueOffset : Float = 0, alphaOffset : Float = 0) : Void;
function concat(second : ColorTransform) : Void;
private function get_color() : UInt;
private function set_color(value : UInt) : UInt;
function toString() : String;
}

View File

@ -0,0 +1,29 @@
package flash.geom;
extern class Matrix {
var a : Float;
var b : Float;
var c : Float;
var d : Float;
var tx : Float;
var ty : Float;
function new(a : Float = 1, b : Float = 0, c : Float = 0, d : Float = 1, tx : Float = 0, ty : Float = 0) : Void;
function clone() : Matrix;
function concat(m : Matrix) : Void;
@:require(flash11) function copyColumnFrom(column : UInt, vector3D : Vector3D) : Void;
@:require(flash11) function copyColumnTo(column : UInt, vector3D : Vector3D) : Void;
@:require(flash11) function copyFrom(sourceMatrix : Matrix) : Void;
@:require(flash11) function copyRowFrom(row : UInt, vector3D : Vector3D) : Void;
@:require(flash11) function copyRowTo(row : UInt, vector3D : Vector3D) : Void;
function createBox(scaleX : Float, scaleY : Float, rotation : Float = 0, tx : Float = 0, ty : Float = 0) : Void;
function createGradientBox(width : Float, height : Float, rotation : Float = 0, tx : Float = 0, ty : Float = 0) : Void;
function deltaTransformPoint(point : Point) : Point;
function identity() : Void;
function invert() : Void;
function rotate(angle : Float) : Void;
function scale(sx : Float, sy : Float) : Void;
@:require(flash11) function setTo(aa : Float, ba : Float, ca : Float, da : Float, txa : Float, tya : Float) : Void;
function toString() : String;
function transformPoint(point : Point) : Point;
function translate(dx : Float, dy : Float) : Void;
}

View File

@ -0,0 +1,41 @@
package flash.geom;
@:require(flash10) extern class Matrix3D {
@:flash.property var determinant(get,never) : Float;
@:flash.property var position(get,set) : Vector3D;
@:flash.property var rawData(get,set) : flash.Vector<Float>;
function new(?v : flash.Vector<Float>) : Void;
function append(lhs : Matrix3D) : Void;
function appendRotation(degrees : Float, axis : Vector3D, ?pivotPoint : Vector3D) : Void;
function appendScale(xScale : Float, yScale : Float, zScale : Float) : Void;
function appendTranslation(x : Float, y : Float, z : Float) : Void;
function clone() : Matrix3D;
@:require(flash11) function copyColumnFrom(column : UInt, vector3D : Vector3D) : Void;
@:require(flash11) function copyColumnTo(column : UInt, vector3D : Vector3D) : Void;
@:require(flash11) function copyFrom(sourceMatrix3D : Matrix3D) : Void;
@:require(flash11) function copyRawDataFrom(vector : flash.Vector<Float>, index : UInt = 0, transpose : Bool = false) : Void;
@:require(flash11) function copyRawDataTo(vector : flash.Vector<Float>, index : UInt = 0, transpose : Bool = false) : Void;
@:require(flash11) function copyRowFrom(row : UInt, vector3D : Vector3D) : Void;
@:require(flash11) function copyRowTo(row : UInt, vector3D : Vector3D) : Void;
@:require(flash11) function copyToMatrix3D(dest : Matrix3D) : Void;
function decompose(?orientationStyle : Orientation3D) : flash.Vector<Vector3D>;
function deltaTransformVector(v : Vector3D) : Vector3D;
private function get_determinant() : Float;
private function get_position() : Vector3D;
private function get_rawData() : flash.Vector<Float>;
function identity() : Void;
function interpolateTo(toMat : Matrix3D, percent : Float) : Void;
function invert() : Bool;
function pointAt(pos : Vector3D, ?at : Vector3D, ?up : Vector3D) : Void;
function prepend(rhs : Matrix3D) : Void;
function prependRotation(degrees : Float, axis : Vector3D, ?pivotPoint : Vector3D) : Void;
function prependScale(xScale : Float, yScale : Float, zScale : Float) : Void;
function prependTranslation(x : Float, y : Float, z : Float) : Void;
function recompose(components : flash.Vector<Vector3D>, ?orientationStyle : Orientation3D) : Bool;
private function set_position(value : Vector3D) : Vector3D;
private function set_rawData(value : flash.Vector<Float>) : flash.Vector<Float>;
function transformVector(v : Vector3D) : Vector3D;
function transformVectors(vin : flash.Vector<Float>, vout : flash.Vector<Float>) : Void;
function transpose() : Void;
static function interpolate(thisMat : Matrix3D, toMat : Matrix3D, percent : Float) : Matrix3D;
}

View File

@ -0,0 +1,7 @@
package flash.geom;
@:native("flash.geom.Orientation3D") extern enum abstract Orientation3D(String) {
var AXIS_ANGLE;
var EULER_ANGLES;
var QUATERNION;
}

View File

@ -0,0 +1,15 @@
package flash.geom;
@:require(flash10) extern class PerspectiveProjection {
@:flash.property var fieldOfView(get,set) : Float;
@:flash.property var focalLength(get,set) : Float;
@:flash.property var projectionCenter(get,set) : Point;
function new() : Void;
private function get_fieldOfView() : Float;
private function get_focalLength() : Float;
private function get_projectionCenter() : Point;
private function set_fieldOfView(value : Float) : Float;
private function set_focalLength(value : Float) : Float;
private function set_projectionCenter(value : Point) : Point;
function toMatrix3D() : Matrix3D;
}

View File

@ -0,0 +1,21 @@
package flash.geom;
extern class Point {
@:flash.property var length(get,never) : Float;
var x : Float;
var y : Float;
function new(x : Float = 0, y : Float = 0) : Void;
function add(v : Point) : Point;
function clone() : Point;
@:require(flash11) function copyFrom(sourcePoint : Point) : Void;
function equals(toCompare : Point) : Bool;
private function get_length() : Float;
function normalize(thickness : Float) : Void;
function offset(dx : Float, dy : Float) : Void;
@:require(flash11) function setTo(xa : Float, ya : Float) : Void;
function subtract(v : Point) : Point;
function toString() : String;
static function distance(pt1 : Point, pt2 : Point) : Float;
static function interpolate(pt1 : Point, pt2 : Point, f : Float) : Point;
static function polar(len : Float, angle : Float) : Point;
}

View File

@ -0,0 +1,47 @@
package flash.geom;
extern class Rectangle {
@:flash.property var bottom(get,set) : Float;
@:flash.property var bottomRight(get,set) : Point;
var height : Float;
@:flash.property var left(get,set) : Float;
@:flash.property var right(get,set) : Float;
@:flash.property var size(get,set) : Point;
@:flash.property var top(get,set) : Float;
@:flash.property var topLeft(get,set) : Point;
var width : Float;
var x : Float;
var y : Float;
function new(x : Float = 0, y : Float = 0, width : Float = 0, height : Float = 0) : Void;
function clone() : Rectangle;
function contains(x : Float, y : Float) : Bool;
function containsPoint(point : Point) : Bool;
function containsRect(rect : Rectangle) : Bool;
@:require(flash11) function copyFrom(sourceRect : Rectangle) : Void;
function equals(toCompare : Rectangle) : Bool;
private function get_bottom() : Float;
private function get_bottomRight() : Point;
private function get_left() : Float;
private function get_right() : Float;
private function get_size() : Point;
private function get_top() : Float;
private function get_topLeft() : Point;
function inflate(dx : Float, dy : Float) : Void;
function inflatePoint(point : Point) : Void;
function intersection(toIntersect : Rectangle) : Rectangle;
function intersects(toIntersect : Rectangle) : Bool;
function isEmpty() : Bool;
function offset(dx : Float, dy : Float) : Void;
function offsetPoint(point : Point) : Void;
function setEmpty() : Void;
@:require(flash11) function setTo(xa : Float, ya : Float, widtha : Float, heighta : Float) : Void;
private function set_bottom(value : Float) : Float;
private function set_bottomRight(value : Point) : Point;
private function set_left(value : Float) : Float;
private function set_right(value : Float) : Float;
private function set_size(value : Point) : Point;
private function set_top(value : Float) : Float;
private function set_topLeft(value : Point) : Point;
function toString() : String;
function union(toUnion : Rectangle) : Rectangle;
}

View File

@ -0,0 +1,24 @@
package flash.geom;
extern class Transform {
@:flash.property var colorTransform(get,set) : ColorTransform;
@:flash.property var concatenatedColorTransform(get,never) : ColorTransform;
@:flash.property var concatenatedMatrix(get,never) : Matrix;
@:flash.property var matrix(get,set) : Matrix;
@:flash.property @:require(flash10) var matrix3D(get,set) : Matrix3D;
@:flash.property @:require(flash10) var perspectiveProjection(get,set) : PerspectiveProjection;
@:flash.property var pixelBounds(get,never) : Rectangle;
function new(displayObject : flash.display.DisplayObject) : Void;
@:require(flash10) function getRelativeMatrix3D(relativeTo : flash.display.DisplayObject) : Matrix3D;
private function get_colorTransform() : ColorTransform;
private function get_concatenatedColorTransform() : ColorTransform;
private function get_concatenatedMatrix() : Matrix;
private function get_matrix() : Matrix;
private function get_matrix3D() : Matrix3D;
private function get_perspectiveProjection() : PerspectiveProjection;
private function get_pixelBounds() : Rectangle;
private function set_colorTransform(value : ColorTransform) : ColorTransform;
private function set_matrix(value : Matrix) : Matrix;
private function set_matrix3D(value : Matrix3D) : Matrix3D;
private function set_perspectiveProjection(value : PerspectiveProjection) : PerspectiveProjection;
}

View File

@ -0,0 +1,7 @@
package flash.geom;
@:require(flash10) extern class Utils3D {
static function pointTowards(percent : Float, mat : Matrix3D, pos : Vector3D, ?at : Vector3D, ?up : Vector3D) : Matrix3D;
static function projectVector(m : Matrix3D, v : Vector3D) : Vector3D;
static function projectVectors(m : Matrix3D, verts : flash.Vector<Float>, projectedVerts : flash.Vector<Float>, uvts : flash.Vector<Float>) : Void;
}

View File

@ -0,0 +1,34 @@
package flash.geom;
@:require(flash10) extern class Vector3D {
@:flash.property var length(get,never) : Float;
@:flash.property var lengthSquared(get,never) : Float;
var w : Float;
var x : Float;
var y : Float;
var z : Float;
function new(x : Float = 0, y : Float = 0, z : Float = 0, w : Float = 0) : Void;
function add(a : Vector3D) : Vector3D;
function clone() : Vector3D;
@:require(flash11) function copyFrom(sourceVector3D : Vector3D) : Void;
function crossProduct(a : Vector3D) : Vector3D;
function decrementBy(a : Vector3D) : Void;
function dotProduct(a : Vector3D) : Float;
function equals(toCompare : Vector3D, allFour : Bool = false) : Bool;
private function get_length() : Float;
private function get_lengthSquared() : Float;
function incrementBy(a : Vector3D) : Void;
function nearEquals(toCompare : Vector3D, tolerance : Float, allFour : Bool = false) : Bool;
function negate() : Void;
function normalize() : Float;
function project() : Void;
function scaleBy(s : Float) : Void;
@:require(flash11) function setTo(xa : Float, ya : Float, za : Float) : Void;
function subtract(a : Vector3D) : Vector3D;
function toString() : String;
static final X_AXIS : Vector3D;
static final Y_AXIS : Vector3D;
static final Z_AXIS : Vector3D;
static function angleBetween(a : Vector3D, b : Vector3D) : Float;
static function distance(pt1 : Vector3D, pt2 : Vector3D) : Float;
}