Skip to content

Commit

Permalink
Updated Square Fn
Browse files Browse the repository at this point in the history
Signed-off-by: Adithya Krishna <[email protected]>
  • Loading branch information
Adithya Krishna committed Jul 12, 2023
1 parent 404facd commit 4381113
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: number) => 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 4381113

Please sign in to comment.