write method

void write(
  1. Vector v
)

Implementation

void write(Vector v){
  array[top++] = v.x;
  array[top++] = v.y;
}