public virtual void SetMat(CSMatrix mat) { CocoStudioEngineAdapterPINVOKE.CSComControlNode_SetMat(this.swigCPtr, CSMatrix.getCPtr(mat)); if (CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Pending) { throw CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Retrieve(); } }
public virtual PointF TransformPoint(PointF p, CSMatrix mat) { Vec2 vec2 = new Vec2(CocoStudioEngineAdapterPINVOKE.CSComControlNode_TransformPoint(this.swigCPtr, Vec2.getCPtr(new Vec2(p.X, p.Y)), CSMatrix.getCPtr(mat)), true); if (CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Pending) { throw CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Retrieve(); } return(new PointF(vec2.x, vec2.y)); }
public virtual MatrixNode Mat4ToMatrixNode(CSMatrix mat) { MatrixNode matrixNode = new MatrixNode(CocoStudioEngineAdapterPINVOKE.CSComControlNode_Mat4ToMatrixNode(this.swigCPtr, CSMatrix.getCPtr(mat)), true); if (CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Pending) { throw CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Retrieve(); } return(matrixNode); }
public virtual CSMatrix Mat4Identity(CSMatrix pM) { CSMatrix csMatrix = new CSMatrix(CocoStudioEngineAdapterPINVOKE.CSComControlNode_Mat4Identity(this.swigCPtr, CSMatrix.getCPtr(pM)), true); if (CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Pending) { throw CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Retrieve(); } return(csMatrix); }
public virtual CSRect RectApplyTransform(Rectangle rect, CSMatrix mat) { CSRect csRect = new CSRect(CocoStudioEngineAdapterPINVOKE.CSComControlNode_RectApplyTransform(this.swigCPtr, Rect.getCPtr(new Rect((float)rect.X, (float)rect.Y, (float)rect.Width, (float)rect.Height)), CSMatrix.getCPtr(mat)), true); if (CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Pending) { throw CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Retrieve(); } return(csRect); }