math.like.d.ts 967 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. import type { float, int, DeepImmutable, Tuple } from "../types";
  2. /**
  3. * @internal
  4. */
  5. export interface IColor3Like {
  6. r: float;
  7. g: float;
  8. b: float;
  9. }
  10. /**
  11. * @internal
  12. */
  13. export interface IColor4Like extends IColor3Like {
  14. a: float;
  15. }
  16. /**
  17. * @internal
  18. */
  19. export interface IVector2Like {
  20. x: float;
  21. y: float;
  22. }
  23. /**
  24. * @internal
  25. */
  26. export interface IVector3Like extends IVector2Like {
  27. z: float;
  28. }
  29. /**
  30. * @internal
  31. */
  32. export interface IVector4Like extends IVector3Like {
  33. w: float;
  34. }
  35. /**
  36. * @internal
  37. */
  38. export interface IQuaternionLike extends IVector3Like {
  39. w: float;
  40. }
  41. /**
  42. * @internal
  43. */
  44. export interface IPlaneLike {
  45. normal: IVector3Like;
  46. d: float;
  47. normalize(): void;
  48. }
  49. /**
  50. * @internal
  51. */
  52. export interface IMatrixLike {
  53. asArray(): DeepImmutable<Tuple<number, 16>>;
  54. updateFlag: int;
  55. }
  56. /**
  57. * @internal
  58. */
  59. export interface IViewportLike {
  60. x: float;
  61. y: float;
  62. width: float;
  63. height: float;
  64. }