camera()

Lights Camera / Camera

Description

Sets the position of the camera by defining the eye position, center of the scene, and up direction.

Syntax

void camera() void camera(float eyeX, float eyeY, float eyeZ, float centerX, float centerY, float centerZ, float upX, float upY, float upZ)

Parameters

NameTypeDescription
eyeX/Y/Zfloatposition of the camera eye
centerX/Y/Zfloatcenter of the scene
upX/Y/Zfloatup direction vector

Returns

void

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...