cgv_camera: Set Camera Position and Direction

View source: R/camera.R

cgv_cameraR Documentation

Set Camera Position and Direction

Description

Set Camera Position and Direction

Usage

cgv_camera(viewer, position = c(0, 0, 5), target = c(0, 0, 0), up = c(0, 1, 0))

Arguments

viewer

External pointer returned by cgv_viewer.

position

Numeric vector of length 3 (x, y, z).

target

Numeric vector of length 3 — look-at point.

up

Numeric vector of length 3 — up direction.

Value

No return value, called for side effects: updates the camera's position, look-at target and up vector on the active panel. Returns NULL invisibly.


cgvR documentation built on May 12, 2026, 1:06 a.m.