Package-level declarations

Functions

Link copied to clipboard

Calculates the best fitting plane that lies in a list of Vector3D. See StackExchange for more information.

Link copied to clipboard

Calculates the centroid of a list of Vector3D. See the wikipedia article of Centroid.

Calculates the centroid of a list of Vector2D. See the wikipedia article of Centroid.

Link copied to clipboard

Calculates the normal of a vertex list by means of (Newell’s method)https://www.khronos.org/opengl/wiki/Calculating_a_Surface_Normal#Newell.27s_Method.

Link copied to clipboard

Returns true, if the list of Vector2D has a clockwise order.

Link copied to clipboard

Returns true, if all three Vector3D are located on a line with a given tolerance.

Returns true, if all Vector3D within the list are located on a line.

Link copied to clipboard

Returns true, if the list of Vector2D has an anti-clockwise order.

Link copied to clipboard
fun List<Vector3D>.isPlanar(tolerance: Double, dynamicToleranceAdjustment: Boolean = true): Boolean

Returns true, if all Vector3Ds are located within a plane.

Link copied to clipboard

Removes consecutively following side duplicates. For example, (A, B, C, B, D) will yield (A, B, C, D).

Removes all vectors which are located on a line segment spanned by the previous and following one.

Link copied to clipboard

Conversion to a string of coordinates.