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) }); }
public ReportDto Get([FromBody] CubesViewModel cubes) { return(_cubeServicesServices.GetReport(cubes)); }