Exemplo n.º 1
0
            public override CubeHandlerParams Handle(CubeHandlerParams cubeHandlerParams)
            {
                cubeHandlerParams.volume = cubeHandlerParams.intersection
              ? CalculateVolumeIntersectionTrue(cubeHandlerParams.intersectionCalculator, cubeHandlerParams.volumeCalculator, cubeHandlerParams.firstCube, cubeHandlerParams.secondCube)
              : CalculateVolumeIntersectionFalse();

                return(base.Handle(cubeHandlerParams));
            }
Exemplo n.º 2
0
 public virtual CubeHandlerParams Handle(CubeHandlerParams cubeHandlerParams)
 {
     if (this._nextHandler != null)
     {
         return(this._nextHandler.Handle(cubeHandlerParams));
     }
     else
     {
         return(cubeHandlerParams);
     }
 }
Exemplo n.º 3
0
 public override CubeHandlerParams Handle(CubeHandlerParams cubeHandlerParams)
 {
     cubeHandlerParams.intersection = cubeHandlerParams.intersectionCalculator.FindParallelCubeIntersection(cubeHandlerParams.firstCube, cubeHandlerParams.secondCube);
     return(base.Handle(cubeHandlerParams));
 }