math.vector.functions.d.ts 985 B

12345678910111213141516171819202122
  1. import type { Vector2, Vector3, Vector4 } from "./math.vector";
  2. /**
  3. * Creates a string representation of the Vector2
  4. * @param vector defines the Vector2 to stringify
  5. * @param decimalCount defines the number of decimals to use
  6. * @returns a string with the Vector2 coordinates.
  7. */
  8. export declare function Vector2ToFixed(vector: Vector2, decimalCount: number): string;
  9. /**
  10. * Creates a string representation of the Vector3
  11. * @param vector defines the Vector3 to stringify
  12. * @param decimalCount defines the number of decimals to use
  13. * @returns a string with the Vector3 coordinates.
  14. */
  15. export declare function Vector3ToFixed(vector: Vector3, decimalCount: number): string;
  16. /**
  17. * Creates a string representation of the Vector4
  18. * @param vector defines the Vector4 to stringify
  19. * @param decimalCount defines the number of decimals to use
  20. * @returns a string with the Vector4 coordinates.
  21. */
  22. export declare function Vector4ToFixed(vector: Vector4, decimalCount: number): string;