project_2d: Project 3D coordinates to 2D

View source: R/main.R

project_2dR Documentation

Project 3D coordinates to 2D

Description

Use a projection matrix to transform 3D world coordinates to 2D coordinates - for example representing a camera viewing a 3D scene. See get_projection() for how to obtain a projection mtarix. This function is equivalent to the trans3d() function, but also stores depth information relative to the camera.

Usage

project_2d(x, y, z, proj_mat)

Arguments

x, y, z

world coordinates.

proj_mat

4*4 projection matrix, as returned from get_projection().


bobverity/bobfunctions2 documentation built on July 4, 2023, 8:55 p.m.