Constructs a new line segment with the given values.
LineSegment([Vector3? from, Vector3? to]) { this.from = from ?? Vector3(); this.to = to ?? Vector3(); }