Exemple #1
0
        public static void RenderXZOrientedQuadBorderLines(XZOrientedQuad3D orientedQuad, Color color, float offsetAlongNormal)
        {
            List <Vector3> cornerPoints = orientedQuad.GetCornerPoints();

            cornerPoints = Vector3Extensions.ApplyOffsetToPoints(cornerPoints, orientedQuad.Plane.normal * offsetAlongNormal);
            RenderLinesBetweenPoints(cornerPoints, color);
        }
 public void MovePoints(Vector3 moveVector)
 {
     _unprojectedPivotPoints = Vector3Extensions.ApplyOffsetToPoints(_unprojectedPivotPoints, moveVector);
     _pivotPointCollection.MovePoints(moveVector);
     _pointsPlane = new Plane(_pointsPlane.normal, _pivotPointCollection.GetPointByIndex(0));
 }
 public void MovePoints(Vector3 moveVector)
 {
     _pivotPoints = Vector3Extensions.ApplyOffsetToPoints(_pivotPoints, moveVector);
 }