Class

OrthoCamera

frontend/ortho_camera.OrthoCamera(left, right, bottom, top, near, far, eyeopt, targetopt, upopt)

Constructor

# new OrthoCamera(left, right, bottom, top, near, far, eyeopt, targetopt, upopt)

Creates a new orthographic camera

Parameters:
Name Type Attributes Default Description
left number

Left bound of view frustum

right number

Right bound of view frustum

bottom number

Bottom bound of view frustum

top number

Top bound of view frustum

near number

Near clipping plane

far number

Far clipping plane

eye vec3.default <optional>
[0,0,-3]

Camera position

target vec3.default <optional>
[0,0,1]

Look-at target

up vec3.default <optional>
[0,1,0]

Up vector

View Source frontend/src/ortho_camera.ts, line 46

Classes

OrthoCamera

Members

# aspect

Aspect ratio of the viewport

View Source frontend/src/ortho_camera.ts, line 24

# bottom

Bottom bound of the orthographic frustum

View Source frontend/src/ortho_camera.ts, line 30

# eye

Camera position in world space

View Source frontend/src/ortho_camera.ts, line 18

# left

Left bound of the orthographic frustum

View Source frontend/src/ortho_camera.ts, line 26

# projectionMatrix

Projection matrix for orthographic view

View Source frontend/src/ortho_camera.ts, line 14

Right bound of the orthographic frustum

View Source frontend/src/ortho_camera.ts, line 28

# target

Point the camera is looking at

View Source frontend/src/ortho_camera.ts, line 20

# top

Top bound of the orthographic frustum

View Source frontend/src/ortho_camera.ts, line 32

# up

Up vector for camera orientation

View Source frontend/src/ortho_camera.ts, line 22

# viewMatrix

View matrix for camera position and orientation

View Source frontend/src/ortho_camera.ts, line 16

Methods

# getEye() → {vec3.default}

Gets the camera's position

View Source frontend/src/ortho_camera.ts, line 334

Camera position

vec3.default

# getTarget() → {vec3.default}

Gets the camera's target point

View Source frontend/src/ortho_camera.ts, line 327

Target point

vec3.default

# getViewProjectionMatrix() → {Float32Array}

Gets the combined view-projection matrix

View Source frontend/src/ortho_camera.ts, line 320

View-projection matrix

Float32Array

# mapToLatLng() → {Object}

Maps orthographic bounds to latitude/longitude coordinates

View Source frontend/src/ortho_camera.ts, line 294

Object containing min/max latitude and longitude

Object

# refreshProjectionMatrix() → {void}

Updates the projection matrix with current frustum bounds

View Source frontend/src/ortho_camera.ts, line 269

void

# refreshViewMatrix() → {void}

Updates the view matrix based on current camera position

View Source frontend/src/ortho_camera.ts, line 262

void

# translateCamera(x, y, z) → {void}

Translates the camera in world space

Parameters:
Name Type Description
x number

X-axis translation

y number

Y-axis translation

z number

Z-axis translation (triggers zoom if non-zero)

View Source frontend/src/ortho_camera.ts, line 287

void

# zoomCamera(zoom) → {void}

Zooms the camera by adjusting the orthographic frustum

Parameters:
Name Type Description
zoom number

Zoom factor (positive = zoom in, negative = zoom out)

View Source frontend/src/ortho_camera.ts, line 302

void