Last active
April 3, 2018 08:41
-
-
Save Indp-Dustin/c1f112bafc1717a660f4e69620db1bcf to your computer and use it in GitHub Desktop.
This file contains hidden or 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
void DrawLine(Vector3 start, Vector3 dest) | |
{ | |
} | |
void UpdateFrame(void) | |
{ | |
Vector3 Pt1, Pt2; | |
Pt1.SetPoint(10, 10); | |
Pt2.SetPoint(80, 20); | |
SetColor(255, 0, 0); | |
DrawLine(Pt1, Pt2); | |
} |
This file contains hidden or 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
struct Vector3 | |
{ | |
public: | |
float X; | |
float Y; | |
float Z; | |
void SetPoint(float InX, float InY) | |
{ | |
X = InX; | |
Y = InY; | |
Z = 1.0f; | |
} | |
void SetVector(float InX, float InY) | |
{ | |
X = InX; | |
Y = InY; | |
Z = 0.0f; | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment