Skip to content

Instantly share code, notes, and snippets.

@Indp-Dustin
Last active April 3, 2018 08:41
Show Gist options
  • Save Indp-Dustin/c1f112bafc1717a660f4e69620db1bcf to your computer and use it in GitHub Desktop.
Save Indp-Dustin/c1f112bafc1717a660f4e69620db1bcf to your computer and use it in GitHub Desktop.
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);
}
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