You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
2.8 KiB

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Graphische Datenverarbeitung - Math - Matrix</title>
  6. <script type="text/javascript" src="matrix.bundle.js"></script>
  7. <link rel="icon" type="image/png" href="ai-logo.png">
  8. </head>
  9. <body>
  10. <nav class="navbar navbar-light bg-light">
  11. <div class="container">
  12. <a class="navbar-brand" href="/index.html">
  13. <img src="ai-logo.png" width="30" height="30" class="d-inline-block align-top" alt="">
  14. Graphische Datenverarbeitung
  15. </a>
  16. <div class="navbar-brand">Matrix</div>
  17. </div>
  18. </nav>
  19. <br>
  20. <div class="container">
  21. <div class="row">
  22. <figure class="figure col-sm-8">
  23. <canvas id="result" class="figure-img mx-auto d-block" width="500" height="500"></canvas>
  24. <figcaption class="figure-caption text-center">
  25. Implement the Matrix class. You may use the sliders to transform the sphere's midpoint
  26. </figcaption>
  27. </figure>
  28. <div class="col-sm-4">
  29. <div class="form-group text-left col-sm-12">
  30. <input class="form-check-input" type="checkbox" id="userotation"></input>
  31. <label class="form-check-label" for="rotation">Rotation</label>
  32. <input class="form-control-range" type="range" min="0" max="6.28318" step="0.01" id="rotation"
  33. disabled></input>
  34. </div>
  35. <div class="form-group text-left col-sm-12">
  36. <input class="form-check-input" type="checkbox" id="usetranslation"></input>
  37. <label class="form-check-label" for="translation">Translation X</label>
  38. <input class="form-control-range" type="range" min="-1" max="1" step="0.02" id="translation"
  39. disabled></input>
  40. <p>
  41. Translation is done before rotation. Therefore the translate direction might be different from
  42. what you expect.
  43. </p>
  44. </div>
  45. <div class="form-group text-left col-sm-12">
  46. <input class="form-check-input" type="checkbox" id="usescale"></input>
  47. <label class="form-check-label" for="scale">Scale</label>
  48. <input class="form-control-range" type="range" min="1" max="2" step="0.01" id="scale"
  49. disabled></input>
  50. <p>
  51. We only scale the sphere midpoint positions. The slider is from 1 to 2. The camera is in the
  52. origin. Scaling to 2 will move the spheres further away from the camera.
  53. </p>
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. </body>
  59. </html>