/** * @fileOverview * Defines various geometry related helper functions */ /** * computes centroid given a set of points * @param points * @returns centroid of 'points' */ export declare function getCentroid(points: number[][]): number[]; /** * Matrix denotes the basis vectors of the linear space. The orientation of the * basis vector should not change after rotating. So after computing rotation * matrix, we should check if the orientation is the same as before. Sign of * determinant of the matrix gives the orientation of the basis vectors. * Therefore, if the sign of the determinant is negative, we multiply the third * column of rotation matrix by -1, so that the orientation changes and sign of * determinant becomes positive again. * @param rotationalMatrix * @returns 3x3 matrix */ export declare function checkOrientation(rotationalMatrix: number[][]): number[][];