Description
The Delta
property of the Line
struct represents the vector difference between the end point and the start point of the line. It is calculated as the vector from the start point to the end point, effectively giving the direction and magnitude of the line segment in 3D space.
Usage
To access the Delta
property, you need to have an instance of the Line
struct. The property is read-only and provides a Vector3
that represents the difference between the line's end and start points.
Example
// Example of using the Delta property
Line line = new Line
{
Start = new Vector3(1, 2, 3),
End = new Vector3(4, 5, 6)
};
Vector3 delta = line.Delta;
// delta is now (3, 3, 3), which is the vector from Start to End