Vector3 – Code Theory

This is just going to be a post about things I pick up as I study

 

So what is a vector3? It most often describes one of two things

huacanacha describes it thus : A Vector3 is a 3-tuple (an ordered list of 3 values) which can represent:

  • A vector: direction and magnitude, but no position
  • A point: position only

 

Vector3.back  is shorthand for   Vector3(0,0,-1);

Vector3.zero  is shorthand for writing  Vector3(0,0,0);

Vector3.left  is shorthand for   Vector3(-1,0,0);