Created
August 3, 2019 09:49
-
-
Save navaneeth-dev/e14f664d27d00f9b62495003a257a74b to your computer and use it in GitHub Desktop.
[UE3] Old general purpose sdk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class FVector | |
{ | |
public: | |
float x, y, z; | |
FVector() {}; | |
FVector(float x, float y, float z) | |
{ | |
this->x; | |
this->y; | |
this->z; | |
} | |
FVector operator+(FVector v) | |
{ | |
return FVector(x + v.x, y + v.y, z + v.z); | |
} | |
FVector operator-(FVector v) | |
{ | |
return FVector(x - v.x, y - v.y, z - v.z); | |
} | |
}; | |
struct FVector2D | |
{ | |
public: | |
float x, y; | |
FVector2D() {}; | |
FVector2D(float x, float y) | |
{ | |
this->x; | |
this->y; | |
} | |
FVector2D operator+(FVector2D v) | |
{ | |
return FVector2D(x + v.x, y + v.y); | |
} | |
FVector2D operator-(FVector2D v) | |
{ | |
return FVector2D(x - v.x, y - v.y); | |
} | |
}; | |
struct FRotator | |
{ | |
int pitch, yaw, roll; | |
}; | |
struct FTPOV | |
{ | |
struct FVector Location; // 0x0000(0x000C) (Edit) | |
struct FRotator Rotation; // 0x000C(0x000C) (Edit) | |
float FOV; // 0x0018(0x0004) (Edit) | |
}; | |
struct FQuat | |
{ | |
float X;//(0x0000) (0x0004) | |
float Y;//(0x0004) (0x0004) | |
float Z;//(0x0008) (0x0004) | |
float W;//(0x000C) (0x0004) | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment