Home
last modified time | relevance | path

Searched refs:halfDiagonal (Results 1 – 4 of 4) sorted by relevance

/dports/graphics/opencv/opencv-4.5.3/modules/core/misc/objc/test/
H A DRotatedRectTest.swift25 let halfDiagonal = length * sqrt(2) / 2 in testBoundingRect() variable
27 …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()
/dports/graphics/opencv/opencv-4.5.3/modules/core/misc/java/test/
H A DRotatedRectTest.java38 double halfDiagonal = length * Math.sqrt(2) / 2; in testBoundingRect() local
40 …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()
/dports/games/ufoai/ufoai-2.5-source/src/shared/
H A Daabb.cpp95 vec3_t center, halfDiagonal; in rotateAround() local
98 VectorSubtract(maxs, center, halfDiagonal); in rotateAround()
117 VectorRotate(m, halfDiagonal, newHalfDiagonal); in rotateAround()
/dports/cad/sweethome3d/SweetHome3D-6.6.4-src/src/com/eteks/sweethome3d/viewcontroller/
H A DHomeController3D.java762 float halfDiagonal = (float)Math.sqrt(homeBoundsWidth * homeBoundsWidth in updateCameraIntervalToAerialViewCenter() local
765 this.minDistanceToAerialViewCenter = halfDiagonal * 1.05f; in updateCameraIntervalToAerialViewCenter()