pythagoras.r3.camera module

class pythagoras.r3.camera.Camera3D(c: tuple[float, float, float] = (0, 0, 0), p: tuple[float, float, float] = (0, 0, 1), theta: float = 0)[source]

Bases: object

Camera which encodes the position and direction of the rendering frame of reference.

Variables:
  • x (float) – \(x\)-coordinate of the position.

  • y (float) – \(y\)-coordinate of the position.

  • z (float) – \(z\)-coordinate of the position.

  • px (float) – \(x\) component of the unit vector pointing in the direction of view.

  • py (float) – \(y\) component of the unit vector pointing in the direction of view.

  • pz (float) – \(z\) component of the unit vector pointing in the direction of view.

  • theta (float) – Rotation of the camera.

property direction: tuple[float, float, float]
property position: tuple[float, float, float]
px: float
py: float
pz: float
theta: float
x: float
y: float
z: float