mainAxis method

double mainAxis(
  1. Vector2 vector
)

A helper for returning the main axis for vector, given this direction.

Implementation

double mainAxis(Vector2 vector) {
  return vector[mainAxisVectorIndex];
}