예제 #1
0
 public PointVectorEnumerator(PointVector collection)
 {
     collectionRef = collection;
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
예제 #2
0
 public PointVector(PointVector other) : this(delivery_modelPINVOKE.new_PointVector__SWIG_1(PointVector.getCPtr(other)), true)
 {
     if (delivery_modelPINVOKE.SWIGPendingException.Pending)
     {
         throw delivery_modelPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #3
0
 public PointVal(Vector3 point, PointVector[] shortArray)
 {
     this.point = point;
     this.shortArray = shortArray;
     this.killPoints = shortArray.Length;
     if(this.killPoints > maxKillPoints) maxKillPoints = this.killPoints;
 }
예제 #4
0
 public void SetRange(int index, PointVector values)
 {
     delivery_modelPINVOKE.PointVector_SetRange(swigCPtr, index, PointVector.getCPtr(values));
     if (delivery_modelPINVOKE.SWIGPendingException.Pending)
     {
         throw delivery_modelPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #5
0
        public BoxShape(EntityIdentifier identifier, PointSize size, Colour colour)
        {
            Identifier  = identifier;
            this.colour = colour;
            bottomRight = size.ToVector();

            Position = CCDirector.SharedDirector.WinSize.Center;

            GameMessenger.RegisterHandler <PhysicsBodyMoved>(Identifier, OnPhysicsBodyMoved);
        }
예제 #6
0
    public static PointVector Repeat(Point value, int count)
    {
        global::System.IntPtr cPtr = delivery_modelPINVOKE.PointVector_Repeat(Point.getCPtr(value), count);
        PointVector           ret  = (cPtr == global::System.IntPtr.Zero) ? null : new PointVector(cPtr, true);

        if (delivery_modelPINVOKE.SWIGPendingException.Pending)
        {
            throw delivery_modelPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
예제 #7
0
    public PointVector GetRange(int index, int count)
    {
        global::System.IntPtr cPtr = delivery_modelPINVOKE.PointVector_GetRange(swigCPtr, index, count);
        PointVector           ret  = (cPtr == global::System.IntPtr.Zero) ? null : new PointVector(cPtr, true);

        if (delivery_modelPINVOKE.SWIGPendingException.Pending)
        {
            throw delivery_modelPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
예제 #8
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PointVector obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
예제 #9
0
    public PointVector dock_points()
    {
        PointVector ret = new PointVector(delivery_modelPINVOKE.Rider_dock_points(swigCPtr), false);

        return(ret);
    }
예제 #10
0
 private void AddVertex(StringBuilder sb, PointVector vec)
 {
     sb.AppendFormat(CultureInfo.InvariantCulture, "v {0:G} {1:G} {2:G}\n", vec.X * Scale, vec.Y * Scale, vec.Z * Scale);
 }