MCPcopy Create free account
hub / github.com/ThatOpen/engine_clay / round

Method round

packages/clay/src/utils/vector.ts:6–12  ·  view source on GitHub ↗
(vector: number[], precission = 1000)

Source from the content-addressed store, hash-verified

4 }
5
6 static round(vector: number[], precission = 1000) {
7 return [
8 Math.round(vector[0] * precission) / precission,
9 Math.round(vector[1] * precission) / precission,
10 Math.round(vector[2] * precission) / precission,
11 ];
12 }
13
14 static getNormal(points: number[][]) {
15 const a = Vector.subtract(points[0], points[1]);

Callers 1

updateKnotsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected