relative

fun relative(direction: Direction): Vec3i

Gets the vector in the given direction relative to this vector.

For example, if this vector is (3, 4, 5) and the direction is NORTH, the result will be (3, 4, 4), as north is in the -Z direction.