Constructor#
new Billboard(optionsopt)#
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | Object | <optional> | Options: Properties
|
- Source
Extends#
Methods#
getAlignedAxis() → {Vec3}#
Returns aligned vector.
- Overrides
- Source
- Type:
- Vec3
getColor() → {Vec4}#
Returns RGBA color.
- Overrides
- Source
- Type:
- Vec4
getHeight() → {number}#
Gets billboard screen height.
- Source
- Type:
- number
getOffset() → {Vec3}#
Returns billboard screen space offset size.
- Overrides
- Source
- Type:
- Vec3
getPosition() → {Vec3}#
Returns billboard position.
- Overrides
- Source
- Type:
- Vec3
getRotation() → {number}#
Gets screen space rotation.
- Overrides
- Source
- Type:
- number
getSize() → {Object}#
Returns billboard screen size.
- Source
- Type:
- Object
getVisibility() → {boolean}#
Returns billboard visibility.
- Overrides
- Source
- Type:
- boolean
getWidth() → {number}#
Gets billboard screen width.
- Source
- Type:
- number
remove()#
Removes billboard from handler.
- Overrides
- Source
setAlignedAxis(x, y, z)#
Sets billboard cartesian aligned vector.
Name | Type | Description |
---|---|---|
x | number | Aligned vector X coordinate. |
y | number | Aligned vector Y coordinate. |
z | number | Aligned vector Z coordinate. |
- Overrides
- Source
setAlignedAxis3v(alignedAxis)#
Sets billboard aligned vector.
Name | Type | Description |
---|---|---|
alignedAxis | Vec3 | Align direction. |
- Overrides
- Source
setColor(r, g, b, a)#
Sets RGBA color. Each channel from 0.0 to 1.0.
Name | Type | Description |
---|---|---|
r | number | Red. |
g | number | Green. |
b | number | Blue. |
a | number | Alpha. |
- Overrides
- Source
setColor4v(color)#
Sets RGBA color. Each channel from 0.0 to 1.0.
Name | Type | Description |
---|---|---|
color | Vec4 | RGBA vector. |
- Overrides
- Source
setColorHTML(color)#
Sets billboard color.
Name | Type | Description |
---|---|---|
color | string | HTML style color. |
- Overrides
- Source
setHeight(height)#
Sets billboard screen heigh.
Name | Type | Description |
---|---|---|
height | number | Height. |
- Source
setImage(image)#
Sets image object.
Name | Type | Description |
---|---|---|
image | Object | JavaScript image object. |
- Source
setOffset(x, y, zopt)#
Sets screen space offset.
Name | Type | Attributes | Description |
---|---|---|---|
x | number | X offset. | |
y | number | Y offset. | |
z | number | <optional> | Z offset. |
- Overrides
- Source
setOffset3v(offset)#
Sets screen space offset.
Name | Type | Description |
---|---|---|
offset | Vec2 | Offset size. |
- Overrides
- Source
setOpacity(a)#
Sets billboard opacity.
Name | Type | Description |
---|---|---|
a | number | Billboard opacity. |
- Overrides
- Source
setPickingColor3v(color)#
Sets billboard picking color.
Name | Type | Description |
---|---|---|
color | Vec3 | Picking color. |
- Overrides
- Source
setPosition(x, y, z)#
Sets billboard position.
Name | Type | Description |
---|---|---|
x | number | X coordinate. |
y | number | Y coordinate. |
z | number | Z coordinate. |
- Overrides
- Source
setPosition3v(position)#
Sets billboard position.
Name | Type | Description |
---|---|---|
position | Vec3 | Cartesian coordinates. |
- Overrides
- Source
setRotation(rotation)#
Sets billboard screen space rotation in radians.
Name | Type | Description |
---|---|---|
rotation | number | Screen space rotation in radians. |
- Overrides
- Source
setSize(width, height)#
Sets billboard screen size in pixels.
Name | Type | Description |
---|---|---|
width | number | Billboard width. |
height | number | Billboard height. |
- Source
setSrc(src)#
Sets billboard image url source.
Name | Type | Description |
---|---|---|
src | string | Image url. |
- Source
setVisibility(visibility)#
Sets billboard visibility.
Name | Type | Description |
---|---|---|
visibility | boolean | Visibility flag. |
- Overrides
- Source
setWidth(width)#
Sets billboard screen width.
Name | Type | Description |
---|---|---|
width | number | Width. |
- Source