Interface: DomainCamera
Experimental
A domain trace's tilted camera (see the module comment): world (overlay) px ↔ screen, and the pointer onto the flat trace. Pure (three.js math only).
Properties
| Property | Modifier | Type | Default value | Description |
|---|---|---|---|---|
camera | readonly | View3DCamera | undefined | Experimental |
height | readonly | number | undefined | Experimental Figure height (overlay world y = height − container y). |
rect | readonly | Readonly<ViewportRect> | undefined | Experimental |
shapes | public | readonly DomainShape[] | [] | Experimental |
Methods
project()
project(x, y): [number, number];Experimental
Where the flat trace's container point (x, y) is drawn (on its shape's top), container.
Parameters
| Parameter | Type |
|---|---|
x | number |
y | number |
Returns
[number, number]
projectPositions()
projectPositions(out): void;Experimental
Project out's positions (world px, built by buildPrisms) in place.
Parameters
| Parameter | Type |
|---|---|
out | PrismBuffers |
Returns
void
toScreen()
toScreen(
x,
y,
z
): [number, number, number];Experimental
World point (x, y) raised z px: where it is drawn (world px) and its overlay depth.
Parameters
| Parameter | Type |
|---|---|
x | number |
y | number |
z | number |
Returns
[number, number, number]
unproject()
unproject(x, y): [number, number];Experimental
The flat trace's container point under screen point (x, y) (container px): inside the prism the pointer ray hits first, else on the plane.
Parameters
| Parameter | Type |
|---|---|
x | number |
y | number |
Returns
[number, number]
zAt()
zAt(x, y): number;Experimental
The height (px) a world point is drawn at: the top of the (topmost) shape it lies on; else the nearest shape's top, or its bottom in front of it (so an outside label below a slice isn't drawn over the slice's front); 0 without shapes.
Parameters
| Parameter | Type |
|---|---|
x | number |
y | number |
Returns
number