示例#1
0
        public ReportDto GetReport(CubesViewModel cubesViewModel)
        {
            var cubeX = CreateCube(cubesViewModel.CubeX);

            var cubeY = CreateCube(cubesViewModel.CubeY);

            return(new ReportDto
            {
                IsCollided = cubeX.CollidesWith(cubeY),
                IntersectionVolume = cubeX.IntersectionVolumeWith(cubeY)
            });
        }
示例#2
0
 public ReportDto Get([FromBody] CubesViewModel cubes)
 {
     return(_cubeServicesServices.GetReport(cubes));
 }