示例#1
0
        public float dotProduct(VectorBase2 vec)
        {
            float ret = OgrePINVOKE.Vector2_dotProduct(swigCPtr, VectorBase2.getCPtr(vec));

            if (OgrePINVOKE.SWIGPendingException.Pending)
            {
                throw OgrePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#2
0
        public float crossProduct(VectorBase2 rkVector)
        {
            float ret = OgrePINVOKE.VectorBase2_crossProduct(swigCPtr, VectorBase2.getCPtr(rkVector));

            if (OgrePINVOKE.SWIGPendingException.Pending)
            {
                throw OgrePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#3
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(VectorBase2 obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }