UNPKG

400 BJavaScriptView Raw
1import {rotateRzRyRx} from '../rotation';
2
3export function point(points, options, point, angles){
4
5 for (var i = points.length - 1; i >= 0; i--) {
6
7 var p = points[i];
8
9 p.rotated = rotateRzRyRx({x : point.x(p), y : point.y(p), z : point.z(p)}, angles);
10 p.centroid = p.rotated;
11 p.projected = options.project(p.rotated, options);
12 }
13 return points;
14}