fix: Update readme
This commit is contained in:
parent
f334c3284d
commit
f37cbf4c9c
|
|
@ -49,6 +49,7 @@ console.log(`Normalized vector: (${normalized.getX()}, ${normalized.getY()})`);
|
|||
constructor(x: number, y: number)
|
||||
x - The x-coordinate.
|
||||
y - The y-coordinate.
|
||||
```
|
||||
|
||||
Methods
|
||||
- `getX(): number` - Gets the x-coordinate.
|
||||
|
|
@ -70,5 +71,4 @@ Methods
|
|||
- `distance(vector: Vector2D): number` - Calculates the distance to another vector.
|
||||
- `angle(): number` - Calculates the angle of this vector relative to the positive X-axis.
|
||||
- `rotate(angle: number): Vector2D` - Rotates this vector by a given angle.
|
||||
- `lerp(vector: Vector2D, t: number): Vector2D` - Performs linear interpolation between this vector and another vector.
|
||||
```
|
||||
- `lerp(vector: Vector2D, t: number): Vector2D` - Performs linear interpolation between this vector and another vector.
|
||||
Loading…
Reference in New Issue