H7Math¶
Class in MMH7Game · MMH7Game.H7Math · native
Object › H7Math
Using it from Lua
Functions¶
| Name | Declaration |
|---|---|
Bezier | static native function Vector Bezier(float T, array<Vector> controlPoints) |
CalcIntPointFromMatrixIndex | static native function IntPoint CalcIntPointFromMatrixIndex(int Index, int xSize) |
CalcLineIntersection | static native function bool CalcLineIntersection(IntPoint A1, IntPoint A2, IntPoint B1, IntPoint B2, out IntPoint ab) |
CalcMatrixIndex | static native function int CalcMatrixIndex(int X, int Y, int xSize) |
CheckPointInCircle | static native function bool CheckPointInCircle(IntPoint centerPoint, IntPoint Checkpoint, int R) |
ConvertDegreeToUnrealDegree | static function int ConvertDegreeToUnrealDegree(float Degree) |
GetDiagonalShortcutDistanceIntPoints | static native function float GetDiagonalShortcutDistanceIntPoints(IntPoint A, IntPoint B) |
GetDistance | static function float GetDistance(Vector A, Vector B) |
GetDistanceIntPoints | static function float GetDistanceIntPoints(IntPoint A, IntPoint B) |
GetDistanceIntPointsP | static native function float GetDistanceIntPointsP(IntPoint A, IntPoint B, float P) |
GetLineCellsBresenham | static native function GetLineCellsBresenham(out array<H7CombatMapCell> lineCells, IntPoint originPoint, IntPoint TargetPoint) |
GetLineCellsLengthBresenham | static native function int GetLineCellsLengthBresenham(IntPoint originPoint, IntPoint TargetPoint) |
GetLineCellsSuperCover | static function GetLineCellsSuperCover(out array<H7CombatMapCell> lineCells, IntPoint originPoint, IntPoint TargetPoint) |
GetMidPointCirclePoints | static native function GetMidPointCirclePoints(out array<IntPoint> outPoints, IntPoint centerPoint, int R) |
GetPointsFromDimensions | static native function GetPointsFromDimensions(out array<IntPoint> outPoints, IntPoint TargetPoint, IntPoint dim, int GridSizeX, int GridSizeY, optional H7StructsAndEnumsNative.ECellSize originSize = 0, optional bool filled = true) |
GetPointsFromShape | static native function GetPointsFromShape(out array<IntPoint> outPoints, IntPoint TargetPoint, array<IntPoint> Shape, int GridSizeX, int GridSizeY, optional H7StructsAndEnumsNative.ECellSize originSize = 0) |
GetPointsOnCircle | static native function GetPointsOnCircle(out array<IntPoint> outPoints, IntPoint Center, int Radius) |
GetPointsOnEllipse | static native function GetPointsOnEllipse(out array<IntPoint> outPoints, IntPoint centerPoint, int r1, int r2) |
GetRotationDiff | static function int GetRotationDiff(int rot1, int rot2) |
GetSpiralIntPointsByDimension | static native function GetSpiralIntPointsByDimension(out array<IntPoint> outPoints, IntPoint centerPoint, IntPoint dimensions) |
LinePlaneIntersection | static function bool LinePlaneIntersection(Vector LineA, Vector LineB, Vector PlanePoint, Vector PlaneNormal, out Vector IntersectionPoint) |
Map | static native function float Map(float Value, float start1, float stop1, float start2, float stop2) |
NChooseR | static native function float NChooseR(int N, int R) |
Inherited¶
| From | Members |
|---|---|
| Object | 13 properties, 308 functions |