new Arrow(options)
A Arrow is a THREE object that can be used to display an arrow model.
Parameters:
| Name | Type | Description |
|---|---|---|
options |
object with following keys:
|
- Source:
- models/Arrow.js, line 19
Methods
-
setColor(hex)
-
Set the color of this arrow to the given hex value.
Parameters:
Name Type Description hexthe hex value of the color to use
- Source:
- models/Arrow.js, line 79
-
setDirection(direction)
-
Set the direction of this arrow to that of the given vector.
Parameters:
Name Type Description directionthe direction to set this arrow
- Source:
- models/Arrow.js, line 58
-
setLength(length)
-
Set this arrow to be the given length.
Parameters:
Name Type Description lengththe new length of the arrow
- Source:
- models/Arrow.js, line 70