-
-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(matrices): add matXXn & matXXv fns
- Loading branch information
1 parent
114003c
commit 7a2ef82
Showing
3 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Mat } from "./api"; | ||
import { | ||
scale22, | ||
scale23, | ||
scale33, | ||
scale44 | ||
} from "./scale"; | ||
|
||
export const mat2n = (out: Mat | null, n: number) => scale22(out, n); | ||
|
||
export const mat23n = (out: Mat | null, n: number) => scale23(out, n); | ||
|
||
export const mat3n = (out: Mat | null, n: number) => scale33(out, n); | ||
|
||
export const mat4n = (out: Mat | null, n: number) => scale44(out, n); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { | ||
setVV16, | ||
setVV4, | ||
setVV6, | ||
setVV9 | ||
} from "@thi.ng/vectors"; | ||
|
||
export const mat2v = setVV4; | ||
|
||
export const mat23v = setVV6; | ||
|
||
export const mat33v = setVV9; | ||
|
||
export const mat44v = setVV16; |