static CATransform3D () { Identity = new CATransform3D (); Identity.m11 = 1f; Identity.m22 = 1f; Identity.m33 = 1f; Identity.m44 = 1f; }
static CATransform3D() { Identity = new CATransform3D(); Identity.m11 = 1f; Identity.m22 = 1f; Identity.m33 = 1f; Identity.m44 = 1f; }
// 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); }
// 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); }
// 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); }
// 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); }
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);
extern static int CATransform3DEqualToTransform(CATransform3D a, CATransform3D b);
extern static CATransform3D CATransform3DInvert(CATransform3D t);
extern static bool CATransform3DIsAffine(CATransform3D t);
public bool Equals (CATransform3D other) { return CATransform3DEqualToTransform (this, other) != 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);
extern static CATransform3D CATransform3DConcat(CATransform3D a, CATransform3D b);
extern static CATransform3D CATransform3DScale(CATransform3D t, float sx, float sy, float sz);
public CATransform3D Concat(CATransform3D b) { return(CATransform3DConcat(this, b)); }
extern static CATransform3D CATransform3DRotate(CATransform3D t, float angle, float x, float y, float z);
public CATransform3D Invert(CATransform3D t) { return(CATransform3DInvert(this)); }
extern static CATransform3D CATransform3DScale (CATransform3D t, float sx, float sy, float sz);
public extern static CGAffineTransform GetAffine(CATransform3D t);
extern static CATransform3D CATransform3DConcat (CATransform3D a, CATransform3D b);
extern static int CATransform3DIsIdentity(CATransform3D t);
extern static CATransform3D CATransform3DTranslate(CATransform3D t, double tx, double ty, double tz);
public bool Equals(CATransform3D other) { return(CATransform3DEqualToTransform(this, other) != 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);