Example #1
0
 static CATransform3D()
 {
     Identity     = new CATransform3D();
     Identity.m11 = 1f;
     Identity.m22 = 1f;
     Identity.m33 = 1f;
     Identity.m44 = 1f;
 }
Example #2
0
 static CATransform3D()
 {
     Identity = new CATransform3D ();
     Identity.m11 = 1f;
     Identity.m22 = 1f;
     Identity.m33 = 1f;
     Identity.m44 = 1f;
 }
Example #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(nfloat sx, nfloat sy, nfloat sz)
        {
            CATransform3D r = Identity;

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

            return(r);
        }
Example #4
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(nfloat tx, nfloat ty, nfloat tz)
        {
            //return CATransform3DMakeTranslation (tx, ty, tz);
            CATransform3D r = Identity;

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

            return(r);
        }
Example #5
0
 static extern bool CATransform3DEqualToTransform(CATransform3D a, CATransform3D b);
Example #6
0
 public CATransform3D Invert(CATransform3D t)
 {
     return CATransform3DInvert (this);
 }
Example #7
0
 static extern CATransform3D CATransform3DConcat(CATransform3D a, CATransform3D b);
Example #8
0
 extern static CATransform3D CATransform3DInvert(CATransform3D t);
Example #9
0
 public bool Equals(CATransform3D other)
 {
     return CATransform3DEqualToTransform (this, other);
 }
Example #10
0
 static extern bool CATransform3DIsIdentity(CATransform3D t);
Example #11
0
 static extern CATransform3D CATransform3DScale(CATransform3D t, nfloat sx, nfloat sy, nfloat sz);
Example #12
0
 extern static bool CATransform3DEqualToTransform(CATransform3D a, CATransform3D b);
Example #13
0
 public bool Equals(CATransform3D other)
 {
     return(CATransform3DEqualToTransform(this, other));
 }
Example #14
0
 extern static CATransform3D CATransform3DConcat(CATransform3D a, CATransform3D b);
Example #15
0
 extern static bool CATransform3DIsIdentity(CATransform3D t);
Example #16
0
 public extern static CGAffineTransform GetAffine(CATransform3D t);
Example #17
0
 extern static bool CATransform3DIsAffine(CATransform3D t);
Example #18
0
 public CATransform3D Invert(CATransform3D t)
 {
     return(CATransform3DInvert(this));
 }
Example #19
0
 static extern CATransform3D CATransform3DInvert(CATransform3D t);
Example #20
0
 extern static CATransform3D CATransform3DRotate(CATransform3D t, nfloat angle, nfloat x, nfloat y, nfloat z);
Example #21
0
 static extern bool CATransform3DIsAffine(CATransform3D t);
Example #22
0
 extern static CATransform3D CATransform3DScale(CATransform3D t, nfloat sx, nfloat sy, nfloat sz);
Example #23
0
 static extern CATransform3D CATransform3DRotate(CATransform3D t, nfloat angle, nfloat x, nfloat y, nfloat z);
Example #24
0
 public CATransform3D Concat(CATransform3D b)
 {
     return CATransform3DConcat (this, b);
 }
Example #25
0
 static extern CATransform3D CATransform3DTranslate(CATransform3D t, nfloat tx, nfloat ty, nfloat tz);
Example #26
0
 public CATransform3D Concat(CATransform3D b)
 {
     return(CATransform3DConcat(this, b));
 }
Example #27
0
 public static extern CGAffineTransform GetAffine(CATransform3D t);
Example #28
0
 extern static CATransform3D CATransform3DTranslate(CATransform3D t, nfloat tx, nfloat ty, nfloat tz);