Skip to content

Commit

Permalink
feat: add hasPoint function to GraphPoints
Browse files Browse the repository at this point in the history
  • Loading branch information
ccarmichael-uncharted committed Jun 4, 2024
1 parent adf2321 commit 19f0555
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/data/GraphPoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ export class GraphPoints extends DataTexture {
];
}

public hasPoint(id: number | string): boolean {
return this.map.has(id);
}

public getPointByID(id: number | string): [number, number, number, number] {
return this.getPointByIndex(this.getPointIndex(id));
}
Expand Down

0 comments on commit 19f0555

Please sign in to comment.