Searched refs:lengthSquared (Results 1 – 6 of 6) sorted by relevance
30 assertThat(Vector3.ORIGIN.normalized().lengthSquared()).isEqualTo(0); in testNorm()43 .lengthSquared() in testClamp()51 .lengthSquared() in testClamp()59 .lengthSquared() in testClamp()66 assertThat(n.add(n.inverted()).lengthSquared()).isEqualTo(0); in testInverted()
70 float normSquared = lengthSquared(); in normalized()138 public float lengthSquared() { in lengthSquared() method in Vector3148 return (float) sqrt(lengthSquared()); in length()
350 if (rotationAxis.lengthSquared() < 0.01f) { // bad luck, they were parallel, try again! in rotationBetweenVectors()
393 final double lengthSquared = getLength() * getLength(); in distance() local394 if (lengthSquared == 0.0) { in distance()403 double magnitude = dot / lengthSquared; in distance()
152 if (mPosition.lengthSquared() > POS_RESET_DISTANCE_METERS * POS_RESET_DISTANCE_METERS) { in onSensorChanged()
117 assertThat(newPose.translation.lengthSquared()).isEqualTo(0); in poseChanges()