views

command
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Command views renders one scene from several cameras at once.

It is the example for the arrangement the 3D package is built on: a scene is the data, a camera is a way of looking at it, and the two are separate values. **One data repository, several views on it.** The scene below is built once and trained once; four cameras are pointed at it and land as four cells of one figure, so the same surface is read as a shape, as two profiles and as a plan.

It also shows what an orbit is, without opening a window: a camera is an immutable value and three.Orbit is a pure function from one to another, so turning the scene is arithmetic the host does and this library never sees a pointer. See turn() at the bottom, which is the whole of the host's side.

go run ./examples/views

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL