The following functions inpute a point cloud (as a matrix of coordinates) and an axis (as a direction vector), and return the coordinates of a desired variable with respect to the cloud attached to the axis.
1 | axis_coordinates(cloud, dir_vec, variable)
|
cloud |
An m-by-n matrix of coordinates for m points in n-dimensional space. |
dir_vec |
An n-dimensional vector giving the direction of the axis through the cloud. |
variable |
Character; which variable to calculate, from among
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.