CornerPoints
Properties
topLeft(dynamic)topRight(dynamic)bottomLeft(dynamic)bottomRight(dynamic)
Constructor
new CornerPoints(): CornerPointsInstance Methods
toArray(): dynamic
Returns the points in the order of topLeft, topRight, bottomLeft, bottomRight
Returns
dynamic
toClockwiseOutlineArray(): dynamic
Returns the points in the order of topLeft, topRight, bottomRight, bottomLeft That is, clockwise from the top left corner
Returns
dynamic
setPointByIndex(index: integer, newValue: Vector): void
Parameters
index(integer)newValue(Vector)
Returns
void
getNormal(): Vector
Returns
getAvgWidth(): float
Returns
float
getMaxWidth(): float
Returns
float
getAvgHeight(): float
Returns
float
getMaxHeight(): float
Returns
float
getAvgRotation(): float
Returns
float
getRotationOfTopLeftBottomRightDiagonal(
originalDiagonal?: Vector,
): float
Parameters
originalDiagonal(Vector, optional, default: "BGE.Math.VectorOps.create(1, 0, 0)")
Returns
float
getRotationOfTopRightBottomLeftDiagonal(
originalDiagonal?: Vector,
): float
Parameters
originalDiagonal(Vector, optional, default: "BGE.Math.VectorOps.create(1, 0, 0)")
Returns
float
computeSideLengths(): dynamic
Returns
dynamic
computeDiagonalLengths(): dynamic
Returns
dynamic
getCenter(): Vector
Returns
getBounds(): dynamic
Returns
dynamic
copy(): CornerPoints
Returns
subtract(vect: Vector): CornerPoints
Parameters
vect(Vector)
Returns
add(vect: Vector): CornerPoints
Parameters
vect(Vector)
Returns
toStr(): string
Returns
string