Vector2Int Perpendicular { get; set; }

robot_2Generated
code_blocksInput

Description

Returns an integer vector that runs perpendicular to this one.

Usage

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

// Example usage of the Perpendicular property
Vector2Int vector = new Vector2Int(1, 0);
Vector2Int perpendicularVector = vector.Perpendicular;

// perpendicularVector will be (0, 1)