Vocabularymath.
matrices.
extrasInputsOutputsWord descriptionMake a
4 x 4 scaling matrix, used to scale an object in 3 or more dimensions. See
scaling matrix on Wikipedia.
Notes• | Only the first three values in factors are used. |
• | This word is the 4-matrix variant of <scale-matrix3>. |
ExamplesUSING: math.matrices.extras prettyprint ;
{ 22 33 -44 } <scale-matrix4> .
{
{ 22 0.0 0.0 0.0 }
{ 0.0 33 0.0 0.0 }
{ 0.0 0.0 -44 0.0 }
{ 0.0 0.0 0.0 1.0 }
}
Definition