fix: Update readme

This commit is contained in:
Eugene 2024-08-14 18:17:03 +03:00
parent f334c3284d
commit f37cbf4c9c
1 changed files with 2 additions and 2 deletions

View File

@ -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.