diff --git a/README.md b/README.md index cd9612f..103e325 100644 --- a/README.md +++ b/README.md @@ -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. -``` \ No newline at end of file +- `lerp(vector: Vector2D, t: number): Vector2D` - Performs linear interpolation between this vector and another vector. \ No newline at end of file