Ejemplo n.º 1
0
void Vector4::InverseScaleNonUniform( const Vector4& perAxisDivisors )
{
	ScaleNonUniform(perAxisDivisors);
	if (x==0 || y ==0|| z==0 || w==0)
	{
		return;
	}
	
	
	x = 1/x;
	y = 1/y;
	z = 1/z;
	w = 1/w;
}
Ejemplo n.º 2
0
already_AddRefed<SVGMatrix>
SVGMatrix::Scale(float scaleFactor)
{
  return ScaleNonUniform(scaleFactor, scaleFactor);
}