Vector3 End { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The End property represents the end position of a line in 3D space. It is a Vector3 type, which means it holds three-dimensional coordinates (x, y, z) that define the endpoint of the line.

Usage

To access or modify the end position of a Line object, use the End property. This property is public and can be read or set directly.

Example

// Example of using the End property
Line line = new Line();

// Set the end position of the line
line.End = new Vector3(10.0f, 5.0f, 3.0f);

// Get the end position of the line
Vector3 endPosition = line.End;

// Output the end position
// Note: Avoid using Console.WriteLine in s&box
// Instead, use appropriate logging or debugging tools
// Debug.Log(endPosition);