Skip to content

Commit

Permalink
chore: 🚨 fix minor linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
thkruz committed Jan 1, 2024
1 parent 702307c commit 1682292
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/data/DataHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { leapSecondData } from './values/LeapSecondData';
* [getInstance] method.
*/
export class DataHandler {
private static instance_: DataHandler = new DataHandler();
private static instance_ = new DataHandler();

private constructor() {
// Prevent instantiation.
Expand Down
10 changes: 5 additions & 5 deletions src/operations/Quaternion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ export class Quaternion {
this.w = w;
}

static zero: Quaternion = new Quaternion(0, 0, 0, 0);
static one: Quaternion = new Quaternion(0, 0, 0, 1);
static xAxis: Quaternion = new Quaternion(1, 0, 0, 0);
static yAxis: Quaternion = new Quaternion(0, 1, 0, 0);
static zAxis: Quaternion = new Quaternion(0, 0, 1, 0);
static zero = new Quaternion(0, 0, 0, 0);
static one = new Quaternion(0, 0, 0, 1);
static xAxis = new Quaternion(1, 0, 0, 0);
static yAxis = new Quaternion(0, 1, 0, 0);
static zAxis = new Quaternion(0, 0, 1, 0);

toString(precision = 8): string {
const xStr = this.x.toFixed(precision);
Expand Down
14 changes: 7 additions & 7 deletions src/operations/Vector3D.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,25 @@ export class Vector3D<T extends number = number> {
}

// / Origin vector.
static origin: Vector3D = new Vector3D(0, 0, 0);
static origin = new Vector3D(0, 0, 0);

// / X-axis unit vector.
static xAxis: Vector3D = new Vector3D(1, 0, 0);
static xAxis = new Vector3D(1, 0, 0);

// / Y-axis unit vector.
static yAxis: Vector3D = new Vector3D(0, 1, 0);
static yAxis = new Vector3D(0, 1, 0);

// / Z-axis unit vector.
static zAxis: Vector3D = new Vector3D(0, 0, 1);
static zAxis = new Vector3D(0, 0, 1);

// / Negative x-axis unit vector.
static xAxisNeg: Vector3D = new Vector3D(-1, 0, 0);
static xAxisNeg = new Vector3D(-1, 0, 0);

// / Negative y-axis unit vector.
static yAxisNeg: Vector3D = new Vector3D(0, -1, 0);
static yAxisNeg = new Vector3D(0, -1, 0);

// / Negative z-axis unit vector.
static zAxisNeg: Vector3D = new Vector3D(0, 0, -1);
static zAxisNeg = new Vector3D(0, 0, -1);

// / Convert this to a [List] of doubles.
toList() {
Expand Down

0 comments on commit 1682292

Please sign in to comment.