Skip to content

Commit

Permalink
add js-doc for rot fields
Browse files Browse the repository at this point in the history
  • Loading branch information
shakiba committed Aug 25, 2023
1 parent ee8785f commit 2edd8a1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/common/Rot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,16 @@ import { Vec2, Vec2Value } from './Vec2';
/** @internal */ const math_atan2 = Math.atan2;

export interface RotValue {
/** sin(angle) */
s: number;
/** cos(angle) */
c: number;
}

export class Rot {
/** sin(angle) */
s: number;
/** cos(angle) */
c: number;

/** Initialize from an angle in radians. */
Expand Down

0 comments on commit 2edd8a1

Please sign in to comment.