// Find the radians between two coordinates public static FInt GetRadiansBetweenCoords(int x1, int y1, int x2, int y2) { return(FInt.Atan2(FInt.Create(y2 - y1), FInt.Create(x2 - x1))); }
// Find the degrees between two coordinates public static FInt GetDegreesBetweenCoords(int x1, int y1, int x2, int y2) { return(FInt.Atan2(FInt.Create(y2 - y1), FInt.Create(x2 - x1)) * 180 / FInt.PI); }