float Length { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Length property of the Vector3Int struct represents the magnitude of the vector. It calculates the distance of the vector from the origin (0,0,0) in a 3D integer space. This property is useful for determining the size or extent of the vector in space.

Usage

To access the Length property, simply call it on an instance of Vector3Int. This will return a float representing the magnitude of the vector.

Example

Vector3Int vector = new Vector3Int(3, 4, 5);
float length = vector.Length;
// length will be 7.0710678, which is the square root of (3^2 + 4^2 + 5^2)