Skip to content

Commit

Permalink
Merge pull request #698 from adithyaakrishna/feat/types-webgl-math
Browse files Browse the repository at this point in the history
Updated Types for WebGL Math Utils
  • Loading branch information
dkoes committed Jul 12, 2023
2 parents 955a12d + 4381113 commit 3bc4e81
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/WebGL/math/utils/conversionMatrix3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ export function conversionMatrix3(
beta: number,
gamma: number
) {
// convert to radians
// Convert to radians
alpha = (alpha * Math.PI) / 180;
beta = (beta * Math.PI) / 180;
gamma = (gamma * Math.PI) / 180;
const sqr = (x) => x*x;
const sqr = (x: number) => {
return x*x
};
const cosAlpha = Math.cos(alpha);
const cosBeta = Math.cos(beta);
const cosGamma = Math.cos(gamma);
Expand Down

0 comments on commit 3bc4e81

Please sign in to comment.