From f37cbf4c9c5973c3d5df4f74c80388959892ec19 Mon Sep 17 00:00:00 2001 From: Eugene Date: Wed, 14 Aug 2024 18:17:03 +0300 Subject: [PATCH] fix: Update readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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