require "matrix"unit = 2sx,sy = 2.0, 3.0;scale = Matrix[[sx,0], [0, sy]]scale*unit # => [2.0, 3.0]: scaled point