new Rectangle(x, y, width, height)
Rectangle object.
Parameters:
Name | Type | Description |
---|---|---|
x |
number | horizontal coordinate of origin |
y |
number | vertical coordinate of origin |
width |
number | width of the rectangle |
height |
number | height of the rectangle |
- Source:
Members
(readonly) center :THREE.Vector2
Get center point.
Type:
- THREE.Vector2
- Source:
h :number
Get and set height of the rectangle (h is a short for height).
Type:
- number
- Source:
height :number
Get and set height of the rectangle.
Type:
- number
- Source:
(readonly) origin :THREE.Vector2
Get origin.
Type:
- THREE.Vector2
- Source:
w :number
Get and set width of the rectangle (w is a short for width).
Type:
- number
- Source: