Beispiel #1
0
        private float intX, intZ;     //intersection position

        public TempEdge(Cell from, Cell to, Vector3 a, Vector3 b)
        {
            this.from = from;
            this.to   = to;
            fromV2    = from.centerVector2;
            toV2      = to.centerVector2;

            Vector3 intersectionV3;

            SomeMath.LineLineIntersectXZ(from.centerVector3, to.centerVector3, a, b, out intersectionV3);
            intX = intersectionV3.x;
            intZ = intersectionV3.z;

            minus    = plus = a;
            minusVal = plusVal = GetSide(a);
            AddNodePos(b);
        }