Line

Line

Line

Constructor

new Line(from, to)

Constructs a new line segment between two points.
Parameters:
Name Type Description
from Array.<x, y, z> Start point of line.
to Array.<x, y, z> End point of line.

Members

from :Array.<x, y, z>

Start point of line segment.
Type:
  • Array.<x, y, z>

length :double

Gets or sets the length of this line segment. Note that a negative length will invert the line segment without making the actual length negative. The line From point will remain fixed when a new Length is set.
Type:
  • double

to :Array.<x, y, z>

End point of line segment.
Type:
  • Array.<x, y, z>