@minecraft/math 1.4.2 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -86,7 +86,11 @@ export class Vector3Builder implements Vector3 {
86
86
  floor(): this;
87
87
  lerp(vec: Vector3, t: number): this;
88
88
  magnitude(): number;
89
+ multiply(vec: Vector3): this;
89
90
  normalize(): this;
91
+ rotateX(a: number): this;
92
+ rotateY(a: number): this;
93
+ rotateZ(a: number): this;
90
94
  scale(val: number): this;
91
95
  slerp(vec: Vector3, t: number): this;
92
96
  subtract(v: Vector3): this;
@@ -116,7 +120,11 @@ export class Vector3Utils {
116
120
  static floor(v: Vector3): Vector3;
117
121
  static lerp(a: Vector3, b: Vector3, t: number): Vector3;
118
122
  static magnitude(v: Vector3): number;
123
+ static multiply(a: Vector3, b: Vector3): Vector3;
119
124
  static normalize(v: Vector3): Vector3;
125
+ static rotateX(v: Vector3, a: number): Vector3;
126
+ static rotateY(v: Vector3, a: number): Vector3;
127
+ static rotateZ(v: Vector3, a: number): Vector3;
120
128
  static scale(v1: Vector3, scale: number): Vector3;
121
129
  static slerp(a: Vector3, b: Vector3, t: number): Vector3;
122
130
  static subtract(v1: Vector3, v2: Vector3): Vector3;