CAD/client/src/helpers/stringFormat.ts

7 lines
180 B
TypeScript

import type { Vector3Like } from "three";
export function formatPoint(point: Vector3Like): string {
return [point.x, point.y, point.z].map((v) => v.toFixed(3)).join('; ');
}