Constructor
new OrthographicProjection(leftopt, rightopt, topopt, bottomopt, nearopt, faropt)
Creates an OrthographicProjection instance.
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
left | number | <optional> | -1 | Left plane of the orthographic box. |
right | number | <optional> | 1 | Right plane of the orthographic box. |
top | number | <optional> | 1 | Top plane of the orthographic box. |
bottom | number | <optional> | -1 | Bottom plane of the orthographic box. |
near | number | <optional> | 0.1 | Near clipping plane. |
far | number | <optional> | 2000 | Far clipping plane. |
Members
bottom :number
The bottom plane of the orthographic box.
- number
- Default Value
- -1
far :number
The far clipping plane.
- number
- Default Value
- 2000
left :number
The left plane of the orthographic box.
- number
- Default Value
- -1
near :number
The near clipping plane.
- number
- Default Value
- 0.1
right :number
The right plane of the orthographic box.
- number
- Default Value
- 1
top :number
The top plane of the orthographic box.
- number
- Default Value
- 1
Methods
(protected) _updateMatrix()
Updates the orthographic projection matrix.
copy(source) → {OrthographicProjection}
Copies the parameters from another OrthographicProjection.
| Name | Type | Description |
|---|---|---|
source | OrthographicProjection |
this
- Type:
- OrthographicProjection
set(left, right, top, bottom, near, far) → {OrthographicProjection}
Sets all orthographic parameters at once.
| Name | Type | Description |
|---|---|---|
left | number | The left plane of the orthographic box. |
right | number | The right plane of the orthographic box. |
top | number | The top plane of the orthographic box. |
bottom | number | The bottom plane of the orthographic box. |
near | number | The near clipping plane. |
far | number | The far clipping plane. |
this
- Type:
- OrthographicProjection
setSize(width, height) → {OrthographicProjection}
Sets the orthographic box size by width and height, centered at (0, 0).
| Name | Type | Description |
|---|---|---|
width | number | The width of the orthographic box. |
height | number | The height of the orthographic box. |
this
- Type:
- OrthographicProjection