new Ray(options)
Name | Type | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
optional
Options:
|
Members
-
protected_entityEntity
-
Entity instance that holds this billboard.
-
protected_handlerBillboardHandler
-
Handler that stores and renders this billboard object.
-
protected_handlerIndexnumber
-
Billboard handler array index.
-
protected_visibilityboolean
-
Ray visibility.
-
readonlyidnumber
-
Object unic identifier.
Methods
-
getEndPosition(){Vec3}
-
Returns ray end position.
Returns:
Type Description Vec3 -
getStartPosition(){Vec3}
-
Returns ray start position.
Returns:
Type Description Vec3 -
getVisibility(){boolean}
-
Returns billboard visibility.
Returns:
Type Description boolean -
remove()
-
Removes billboard from hander.
-
setEndPosition(x, y, z)
-
Sets ray end position.
Name Type Description x
number X coordinate. y
number Y coordinate. z
number Z coordinate. -
setEndPosition3v(position)
-
Sets ray end position.
Name Type Description position
Vec3 Cartesian coordinates. -
setPickingColor3v(color)
-
Sets billboard picking color.
Name Type Description color
Vec3 Picking color. -
setStartPosition(x, y, z)
-
Sets ray start position.
Name Type Description x
number X coordinate. y
number Y coordinate. z
number Z coordinate. -
setStartPosition3v(position)
-
Sets ray start position.
Name Type Description position
Vec3 Cartesian coordinates. -
setVisibility(visibility)
-
Sets billboard visibility.
Name Type Description visibility
boolean Visibility flag.