Ejemplo n.º 1
0
        public static Matrix4F Scaling(float s, Point3F origin)
        {
            Vector3F v = (Vector3F)origin;

            return(Transformation4F.Translation(v) * Transformation4F.Scaling(s) * Transformation4F.Translation(-v));
        }
Ejemplo n.º 2
0
        public static Matrix4F Scaling(Vector3F v, Point3F origin)
        {
            Vector3F v1 = (Vector3F)origin;

            return(Transformation4F.Translation(v1) * Transformation4F.Scaling(v) * Transformation4F.Translation(-v1));
        }