Skip to content

H7Math

Class in MMH7Game · MMH7Game.H7Math · native

Object › H7Math

Using it from Lua
h7.find_all("H7Math")            -- live instances
h7.find_class("MMH7Game.H7Math")   -- the class
h7.hook("MMH7Game.H7Math.Bezier", fn)

Functions

NameDeclaration
Bezierstatic native function Vector Bezier(float T, array<Vector> controlPoints)
CalcIntPointFromMatrixIndexstatic native function IntPoint CalcIntPointFromMatrixIndex(int Index, int xSize)
CalcLineIntersectionstatic native function bool CalcLineIntersection(IntPoint A1, IntPoint A2, IntPoint B1, IntPoint B2, out IntPoint ab)
CalcMatrixIndexstatic native function int CalcMatrixIndex(int X, int Y, int xSize)
CheckPointInCirclestatic native function bool CheckPointInCircle(IntPoint centerPoint, IntPoint Checkpoint, int R)
ConvertDegreeToUnrealDegreestatic function int ConvertDegreeToUnrealDegree(float Degree)
GetDiagonalShortcutDistanceIntPointsstatic native function float GetDiagonalShortcutDistanceIntPoints(IntPoint A, IntPoint B)
GetDistancestatic function float GetDistance(Vector A, Vector B)
GetDistanceIntPointsstatic function float GetDistanceIntPoints(IntPoint A, IntPoint B)
GetDistanceIntPointsPstatic native function float GetDistanceIntPointsP(IntPoint A, IntPoint B, float P)
GetLineCellsBresenhamstatic native function GetLineCellsBresenham(out array<H7CombatMapCell> lineCells, IntPoint originPoint, IntPoint TargetPoint)
GetLineCellsLengthBresenhamstatic native function int GetLineCellsLengthBresenham(IntPoint originPoint, IntPoint TargetPoint)
GetLineCellsSuperCoverstatic function GetLineCellsSuperCover(out array<H7CombatMapCell> lineCells, IntPoint originPoint, IntPoint TargetPoint)
GetMidPointCirclePointsstatic native function GetMidPointCirclePoints(out array<IntPoint> outPoints, IntPoint centerPoint, int R)
GetPointsFromDimensionsstatic native function GetPointsFromDimensions(out array<IntPoint> outPoints, IntPoint TargetPoint, IntPoint dim, int GridSizeX, int GridSizeY, optional H7StructsAndEnumsNative.ECellSize originSize = 0, optional bool filled = true)
GetPointsFromShapestatic native function GetPointsFromShape(out array<IntPoint> outPoints, IntPoint TargetPoint, array<IntPoint> Shape, int GridSizeX, int GridSizeY, optional H7StructsAndEnumsNative.ECellSize originSize = 0)
GetPointsOnCirclestatic native function GetPointsOnCircle(out array<IntPoint> outPoints, IntPoint Center, int Radius)
GetPointsOnEllipsestatic native function GetPointsOnEllipse(out array<IntPoint> outPoints, IntPoint centerPoint, int r1, int r2)
GetRotationDiffstatic function int GetRotationDiff(int rot1, int rot2)
GetSpiralIntPointsByDimensionstatic native function GetSpiralIntPointsByDimension(out array<IntPoint> outPoints, IntPoint centerPoint, IntPoint dimensions)
LinePlaneIntersectionstatic function bool LinePlaneIntersection(Vector LineA, Vector LineB, Vector PlanePoint, Vector PlaneNormal, out Vector IntersectionPoint)
Mapstatic native function float Map(float Value, float start1, float stop1, float start2, float stop2)
NChooseRstatic native function float NChooseR(int N, int R)

Inherited

FromMembers
Object13 properties, 308 functions