The Degrees
property of the Vector2Int
struct returns the angle of the vector in degrees. This angle is always between 0 and 360 degrees, providing a full circle representation of the vector's direction.
The Degrees
property of the Vector2Int
struct returns the angle of the vector in degrees. This angle is always between 0 and 360 degrees, providing a full circle representation of the vector's direction.
To access the angle of a Vector2Int
instance, use the Degrees
property. This is useful for determining the orientation of the vector in a 2D space.
Vector2Int vector = new Vector2Int(1, 1); float angleInDegrees = vector.Degrees; // angleInDegrees will be 45.0f for a vector (1, 1)