project: project

View source: R/A015_project.R

projectR Documentation

project

Description

Converts 3d co-ordinates into 2d co-ordinates.

Usage

project(
  x,
  x0,
  x1,
  y,
  y0,
  y1,
  z,
  z0,
  z1,
  cameraXYZ = c(0, 0, 0),
  thetaXYZ = c(0, 0, 0),
  surfaceXYZ = c(0, 0, 0),
  prepareBackCull = TRUE
)

Arguments

x, y, z

co-ordinates for points, polygons, etc

x0, x1, y0, y1, z0, z2

co-ordiantes for lines

cameraXYZ

co-ordinates for the camera

thetaXYZ

direction of the camera

surfaceXYZ

location of the surface

Details

Uses conventions fromm physics. To Do: Add mathematics convention.

Value

Returns a list with x and y co-ordinates.

Examples

print(1+1)

R-graphic-design/RGD documentation built on Jan. 2, 2023, 10:30 p.m.