LineSegment constructor

LineSegment([
  1. Vector3? from,
  2. Vector3? to
])

Constructs a new line segment with the given values.

Implementation

LineSegment([Vector3? from, Vector3? to]) {
	this.from = from ?? Vector3();
	this.to = to ?? Vector3();
}