Returns an integer vector that runs perpendicular to this one.
Returns an integer vector that runs perpendicular to this one.
The Perpendicular
property of the Vector2Int
struct provides a way to obtain a vector that is perpendicular to the current vector. This is useful in various mathematical and graphical computations where orthogonal vectors are needed.
// Example usage of the Perpendicular property Vector2Int vector = new Vector2Int(1, 0); Vector2Int perpendicularVector = vector.Perpendicular; // perpendicularVector will be (0, 1)