static CATransform3D ()
		{
			Identity = new CATransform3D ();
			Identity.m11 = 1f;
			Identity.m22 = 1f;
			Identity.m33 = 1f;
			Identity.m44 = 1f;
		}
Beispiel #2
0
 static CATransform3D()
 {
     Identity     = new CATransform3D();
     Identity.m11 = 1f;
     Identity.m22 = 1f;
     Identity.m33 = 1f;
     Identity.m44 = 1f;
 }
Beispiel #3
0
        // Scales matrix = [sx 0 0 0; 0 sy 0 0; 0 0 sz 0; 0 0 0 1]
        //[DllImport(Constants.QuartzLibrary)]
        //extern static CATransform3D CATransform3DMakeScale (float sx, float sy, float sz);
        public static CATransform3D MakeScale(float sx, float sy, float sz)
        {
            CATransform3D r = Identity;

            r.m11 = sx;
            r.m22 = sy;
            r.m33 = sz;

            return(r);
        }
Beispiel #4
0
        // Scales matrix = [sx 0 0 0; 0 sy 0 0; 0 0 sz 0; 0 0 0 1]
        //[DllImport(Constants.QuartzLibrary)]
        //extern static CATransform3D CATransform3DMakeScale (double sx, double sy, double sz);
        public static CATransform3D MakeScale(double sx, double sy, double sz)
        {
            CATransform3D r = Identity;

            r.m11 = sx;
            r.m22 = sy;
            r.m33 = sz;

            return(r);
        }
Beispiel #5
0
        // Transform matrix =  [1 0 0 0; 0 1 0 0; 0 0 1 0; tx ty tz 1]
        //[DllImport(Constants.QuartzLibrary)]
        //extern static CATransform3D CATransform3DMakeTranslation (float tx, float ty, float tz);
        public static CATransform3D MakeTranslation(float tx, float ty, float tz)
        {
            //return CATransform3DMakeTranslation (tx, ty, tz);
            CATransform3D r = Identity;

            r.m41 = tx;
            r.m42 = ty;
            r.m43 = tz;

            return(r);
        }
Beispiel #6
0
        // Transform matrix =  [1 0 0 0; 0 1 0 0; 0 0 1 0; tx ty tz 1]
        //[DllImport(Constants.QuartzLibrary)]
        //extern static CATransform3D CATransform3DMakeTranslation (double tx, double ty, double tz);
        public static CATransform3D MakeTranslation(double tx, double ty, double tz)
        {
            //return CATransform3DMakeTranslation (tx, ty, tz);
            CATransform3D r = Identity;

            r.m41 = tx;
            r.m42 = ty;
            r.m43 = tz;

            return(r);
        }
Beispiel #7
0
 extern static CATransform3D CATransform3DRotate(CATransform3D t, double angle, double x, double y, double z);
		public CATransform3D Invert (CATransform3D t)
		{
			return CATransform3DInvert (this);
		}
		extern static CATransform3D CATransform3DRotate (CATransform3D t, float angle, float x, float y, float z);
Beispiel #10
0
 extern static int CATransform3DEqualToTransform(CATransform3D a, CATransform3D b);
Beispiel #11
0
 extern static CATransform3D CATransform3DInvert(CATransform3D t);
Beispiel #12
0
 extern static bool CATransform3DIsAffine(CATransform3D t);
		public bool Equals (CATransform3D other)
		{
			return CATransform3DEqualToTransform (this, other) != 0;
		}
Beispiel #14
0
 extern static CATransform3D CATransform3DTranslate(CATransform3D t, float tx, float ty, float tz);
		extern static int CATransform3DIsIdentity (CATransform3D t);
		extern static int CATransform3DEqualToTransform (CATransform3D a, CATransform3D b);
		public CATransform3D Concat (CATransform3D b)
		{
			return CATransform3DConcat (this, b);
		}
		public extern static CGAffineTransform GetAffine (CATransform3D t);
		extern static bool CATransform3DIsAffine (CATransform3D t);
Beispiel #20
0
 extern static CATransform3D CATransform3DConcat(CATransform3D a, CATransform3D b);
Beispiel #21
0
 extern static CATransform3D CATransform3DScale(CATransform3D t, float sx, float sy, float sz);
Beispiel #22
0
 public CATransform3D Concat(CATransform3D b)
 {
     return(CATransform3DConcat(this, b));
 }
Beispiel #23
0
 extern static CATransform3D CATransform3DRotate(CATransform3D t, float angle, float x, float y, float z);
Beispiel #24
0
 public CATransform3D Invert(CATransform3D t)
 {
     return(CATransform3DInvert(this));
 }
		extern static CATransform3D CATransform3DScale (CATransform3D t, float sx, float sy, float sz);
Beispiel #26
0
 public extern static CGAffineTransform GetAffine(CATransform3D t);
		extern static CATransform3D CATransform3DConcat (CATransform3D a, CATransform3D b);
Beispiel #28
0
 extern static int CATransform3DIsIdentity(CATransform3D t);
Beispiel #29
0
 extern static CATransform3D CATransform3DTranslate(CATransform3D t, double tx, double ty, double tz);
Beispiel #30
0
 public bool Equals(CATransform3D other)
 {
     return(CATransform3DEqualToTransform(this, other) != 0);
 }
Beispiel #31
0
 extern static CATransform3D CATransform3DScale(CATransform3D t, double sx, double sy, double sz);
		extern static CATransform3D CATransform3DTranslate (CATransform3D t, float tx, float ty, float tz);
		extern static CATransform3D CATransform3DInvert (CATransform3D t);