Revision cbcf2374
Added by Leszek Koltunski 4 months ago
src/main/java/org/distorted/library/effect/MatrixEffectScale.java | ||
---|---|---|
49 | 49 |
* <p> |
50 | 50 |
* Here and in Shear we have the whole reason why there are two separate 'P' and 'V' (Point and |
51 | 51 |
* Vector) matrices - Scale and Shear have to manipulate Points and Normal Vectors differently. |
52 |
* |
|
52 |
* <p>
|
|
53 | 53 |
* Points get multiplied by (sx,sy,sz) - and vectors by (1/sx,1/sy,1/sz) (think about it!) - or |
54 | 54 |
* better by sx*sy*sz*(1/sx,1/sy,1/sz) to avoid dividing my zero (vectors are normalized after) |
55 | 55 |
* |
Also available in: Unified diff
minor