Searched refs:halfDiagonal (Results 1 – 4 of 4) sorted by relevance
25 let halfDiagonal = length * sqrt(2) / 2 in testBoundingRect() variable27 …XCTAssert(Float(r.x) == floor(center.x - halfDiagonal) && Float(r.y) == floor(center.y - halfDiago… in testBoundingRect()29 …XCTAssert((r.br().x >= ceil(center.x + halfDiagonal)) && (r.br().y >= ceil(center.y + halfDiagonal… in testBoundingRect()31 …XCTAssert((r.br().x - ceil(center.x + halfDiagonal)) <= 1 && (r.br().y - ceil(center.y + halfDiago… in testBoundingRect()
38 double halfDiagonal = length * Math.sqrt(2) / 2; in testBoundingRect() local40 …assertTrue((r.x == Math.floor(center.x - halfDiagonal)) && (r.y == Math.floor(center.y - halfDiago… in testBoundingRect()42 …ssertTrue((r.br().x >= Math.ceil(center.x + halfDiagonal)) && (r.br().y >= Math.ceil(center.y + ha… in testBoundingRect()44 …sertTrue((r.br().x - Math.ceil(center.x + halfDiagonal)) <= 1 && (r.br().y - Math.ceil(center.y + … in testBoundingRect()
95 vec3_t center, halfDiagonal; in rotateAround() local98 VectorSubtract(maxs, center, halfDiagonal); in rotateAround()117 VectorRotate(m, halfDiagonal, newHalfDiagonal); in rotateAround()
762 float halfDiagonal = (float)Math.sqrt(homeBoundsWidth * homeBoundsWidth in updateCameraIntervalToAerialViewCenter() local765 this.minDistanceToAerialViewCenter = halfDiagonal * 1.05f; in updateCameraIntervalToAerialViewCenter()