Skip to content

Vec3

We can use a 3 integers(\(x, y, z\)) to represent the following:

  • A 3 dimensional vector.1
  • A color (since it has 3 components, \(r, g, b\)).
  • A 3 dimensional point.

References


  1. Read more about vectors