Пример #1
0
        public void UpdateVector(VLCoordinateType coordinateType)
        {
            var pVector = coordinateType.GetParallelVector();

            pVector = VLLocationHelper.GetVectorByQuadrant(pVector, QuadrantType.OneAndFour, coordinateType);
            var vVector = VLLocationHelper.GetVerticalVector(pVector, VLCoordinateType.XY);

            vVector        = VLLocationHelper.GetVectorByQuadrant(vVector, QuadrantType.OneAndFour, coordinateType);
            VerticalVector = vVector;
            ParallelVector = pVector;
        }
Пример #2
0
        public void UpdateVectors(Line locationCurve)
        {
            XYZ parallelVector = null;
            XYZ verticalVector = null;

            parallelVector = locationCurve.Direction;
            verticalVector = VLLocationHelper.GetVerticalVector(parallelVector, VLCoordinateType.XY);
            parallelVector = VLLocationHelper.GetVectorByQuadrant(parallelVector, QuadrantType.OneAndFour);
            verticalVector = VLLocationHelper.GetVectorByQuadrant(verticalVector, QuadrantType.OneAndTwo);
            if ((verticalVector.X - 1).IsMiniValue())
            {
                verticalVector = verticalVector.RevertByCoordinateType(VLCoordinateType.XY);
            }
            VerticalVector = verticalVector;
            ParallelVector = parallelVector;
        }