Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Visualization and Graphics > Computational Geometry > Geometric Transforms > ScalingMatrix >
Mathematica > Visualization and Graphics > Symbolic Graphics Language > Graphics Transformations > Geometric Transforms > ScalingMatrix >

ScalingMatrix

ScalingMatrix
gives the matrix corresponding to scaling by a factor along each coordinate axis.
ScalingMatrix
gives the matrix corresponding to scaling by a factor s along the direction of the vector v.
Scaling by factors , , and along the , , and directions:
Scaling by a factor along the direction of the vector :
Scaling by factors , , and along the , , and directions:
In[1]:=
Click for copyable input
Out[1]//MatrixForm=
In[2]:=
Click for copyable input
Out[2]=
 
Scaling by a factor along the direction of the vector :
In[1]:=
Click for copyable input
Out[1]//MatrixForm=
In[2]:=
Click for copyable input
Out[2]=
Scaling factors can be negative or zero:
Transformation applied to a 2D shape:
Transformation applied to a 3D shape:
Create an ellipsoid:
Display projection of a 3D graphic:
The determinant of ScalingMatrix is s:
The inverse of ScalingMatrix is given by ScalingMatrix:
The determinant of ScalingMatrix is given by :
The inverse of ScalingMatrix is given by ScalingMatrix:
Repeated scalings in different directions:
New in 6
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF