API Docs for: 0.4.0
Show:

Line Class

Extends Shape
Defined in: src/shapes/Line.js:5

Line shape class. The line shape is along the x direction, and stretches from [-length/2, 0] to [length/2,0].

Constructor

Line

(
  • length
)

Parameters:

  • length Number

    The total length of the line

Item Index

Properties

Properties

length

Number

Length of this line