compute2dCoordinates: Convert 3D positions into 2D positions given a transformation...

Description Usage Arguments Value

Description

This function first transforms given 3D positions by the transformation matrix. Then, they were projected onto a canvas and turned into 2D positions.

Usage

1
compute2dCoordinates(transformMatrix, threedPositions)

Arguments

transformMatrix

A 3*3 matrix transforms 3D positions from one coordinates to another. The matrix can be obtained by calculating the inverse of standard camera coordinates.

threedPositions

A n*3 matrix containing all the positions you want to transform

Value

A n*2 matrix containing the 2d positions converted from the 3D positions


AlexHelloWorld/draw3dBubblePlot documentation built on May 21, 2019, 12:02 p.m.