Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Computergraphics
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christoph-Anton Schwierz
Computergraphics
Commits
c2eec2f7
Commit
c2eec2f7
authored
1 year ago
by
Christoph-Anton Schwierz
Browse files
Options
Downloads
Patches
Plain Diff
shear.ts
parent
7036da79
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
index.html
+1
-1
1 addition, 1 deletion
index.html
src/cg/shear.ts
+22
-0
22 additions, 0 deletions
src/cg/shear.ts
with
23 additions
and
1 deletion
index.html
+
1
−
1
View file @
c2eec2f7
...
...
@@ -15,6 +15,6 @@
<script type="module" src="/src/cg/perspectiveDivide.ts"></script>
<script type="module" src="/src/cg/walkToVec.ts"></script>
<script type="module" src="/src/cg/basis.ts"></script-->
<script
type=
"module"
src=
"/src/cg/
testing
.ts"
></script>
<script
type=
"module"
src=
"/src/cg/
shear
.ts"
></script>
</body>
</html>
This diff is collapsed.
Click to expand it.
src/cg/shear.ts
0 → 100644
+
22
−
0
View file @
c2eec2f7
import
Playground
from
"
./playground
"
;
import
*
as
Utils
from
'
./utils
'
;
const
pg
=
new
Playground
();
pg
.
gridXZ
();
const
points
=
[
[
0
,
0
,
0
],[
0
,
0
,
1
],[
0
,
1
,
0
],[
0
,
1
,
1
],[
1
,
0
,
0
],[
1
,
0
,
1
],[
1
,
1
,
0
],[
1
,
1
,
1
]
]
for
(
let
p
of
points
){
pg
.
visPoint
(
p
);
}
const
shear
=
[
1
,
0
,
0.5
,
0
,
1
,
0
,
0
,
0
,
1
]
pg
.
visVector
([
shear
[
0
],
shear
[
1
],
shear
[
2
]],
{
color
:
"
red
"
});
pg
.
visVector
([
shear
[
3
],
shear
[
4
],
shear
[
5
]],
{
color
:
"
green
"
})
pg
.
visVector
([
shear
[
6
],
shear
[
7
],
shear
[
8
]],
{
color
:
"
blue
"
})
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment