mtr_addon:nte:js:math
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| mtr_addon:nte:js:math [2024/02/06 13:07] – added source Alexander Minkin | mtr_addon:nte:js:math [2025/12/03 08:54] (current) – Matrix4f.multiply() does not take a Vector3f AmberFrost | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Math Utilities ====== | ====== Math Utilities ====== | ||
| + | |||
| This is not an introduction to the math functions of the standard JavaScript library. Instead, this is a set of useful classes provided by NTE to perform transformations for model rendering and other things. | This is not an introduction to the math functions of the standard JavaScript library. Instead, this is a set of useful classes provided by NTE to perform transformations for model rendering and other things. | ||
| ===== Vector3f ===== | ===== Vector3f ===== | ||
| + | |||
| A three-dimensional vector, that is, the coordinates (x, y, z). | A three-dimensional vector, that is, the coordinates (x, y, z). | ||
| + | |||
| ^ Functions And Objects ^ Description ^ | ^ Functions And Objects ^ Description ^ | ||
| | '' | | '' | ||
| Line 25: | Line 28: | ||
| ===== Matrix4f ===== | ===== Matrix4f ===== | ||
| + | |||
| 3D transformation matrix. Represents a transformation relationship that corresponds one point to another. For example, one can say "I want to rotate this model 90 degrees around the Y-axis and then move it 10 meters along the X-axis..." | 3D transformation matrix. Represents a transformation relationship that corresponds one point to another. For example, one can say "I want to rotate this model 90 degrees around the Y-axis and then move it 10 meters along the X-axis..." | ||
| Line 30: | Line 34: | ||
| Scaling transformations are not supported. | Scaling transformations are not supported. | ||
| + | |||
| ^ Functions ^ Description ^ | ^ Functions ^ Description ^ | ||
| | '' | | '' | ||
| Line 36: | Line 41: | ||
| | '' | | '' | ||
| | '' | | '' | ||
| - | | '' | + | | '' |
| | '' | | '' | ||
| | '' | | '' | ||
| Line 44: | Line 49: | ||
| ===== Matrices ===== | ===== Matrices ===== | ||
| + | |||
| When rendering, there will be a need to " | When rendering, there will be a need to " | ||
| Line 61: | Line 67: | ||
| ===== Source ===== | ===== Source ===== | ||
| - | * https:// | + | |
| + | * [[https:// | ||
mtr_addon/nte/js/math.txt · Last modified: 2025/12/03 08:54 by AmberFrost