toVector2 method
A Vector2 with main and cross placed along this axis.
Implementation
Vector2 toVector2({
required double main,
required double cross,
}) => switch (this) {
.horizontal => .new(main, cross),
.vertical => .new(cross, main),
};