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:
camera –
Camera3Dobject encoding the plane.frustum – Field of view.
point – Point to be projected.
- Returns:
The projected point or
Noneif it is behind the camera.