예제 #1
0
파일: FPRadians.cs 프로젝트: tarsupin/Nexus
 // 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)));
 }
예제 #2
0
파일: FPDegrees.cs 프로젝트: tarsupin/Nexus
 // 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);
 }