Home
last modified time | relevance | path

Searched refs:normProduct (Results 1 – 2 of 2) sorted by relevance

/external/apache-commons-math/src/main/java/org/apache/commons/math/geometry/
DVector3D.java340 double normProduct = v1.getNorm() * v2.getNorm(); in angle() local
341 if (normProduct == 0) { in angle()
346 double threshold = normProduct * 0.9999; in angle()
351 return FastMath.asin(v3.getNorm() / normProduct); in angle()
353 return FastMath.PI - FastMath.asin(v3.getNorm() / normProduct); in angle()
357 return FastMath.acos(dot / normProduct); in angle()
DRotation.java450 double normProduct = u.getNorm() * v.getNorm(); in Rotation() local
451 if (normProduct == 0) { in Rotation()
457 if (dot < ((2.0e-15 - 1.0) * normProduct)) { in Rotation()
468 q0 = FastMath.sqrt(0.5 * (1.0 + dot / normProduct)); in Rotation()
469 double coeff = 1.0 / (2.0 * q0 * normProduct); in Rotation()