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 End - Start
, providing the directional vector from the start to the end of the line.
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 End - Start
, providing the directional vector from the start to the end of the line.
Use the Delta
property to obtain the directional vector of the line. This can be useful for operations that require the direction or length of the line, such as calculating the line's magnitude or normalizing the direction.
// 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