pythagoras.r3.rendering module

pythagoras.r3.rendering.project_point(camera: Camera3D, frustum: float, point: tuple[float, float, float]) tuple[float, float] | None[source]

Projects a point in \(\mathbf R^3\) with perspective onto the plane centered at the position of the camera, and having its pointing vector as the normal vector of the plane.

Parameters:
  • cameraCamera3D object encoding the plane.

  • frustum – Field of view.

  • point – Point to be projected.

Returns:

The projected point or None if it is behind the camera.