Lines Matching defs:direction

696      * argument in the direction of the second argument.  If both
704 * <li> If both arguments are signed zeros, {@code direction}
710 * &plusmn;{@code Double.MIN_VALUE} and {@code direction}
716 * {@code direction} has a value such that the result should
721 * {@code Double.MAX_VALUE} and {@code direction} has a
727 * @param direction value indicating which of
731 * direction of {@code direction}.
734 public static double nextAfter(double start, double direction) {
747 if (isNaN(start) || isNaN(direction)) {
749 return start + direction;
750 } else if (start == direction) {
751 return direction;
752 } else { // start > direction or start < direction
766 * is in the opposite direction than would be expected at
769 if (direction > start) { // Calculate next greater value
772 assert direction < start;
796 * argument in the direction of the second argument. If both
805 * zero with the same sign as {@code direction} is returned
810 * &plusmn;{@code Float.MIN_VALUE} and {@code direction}
816 * {@code direction} has a value such that the result should
821 * {@code Float.MAX_VALUE} and {@code direction} has a
827 * @param direction value indicating which of
831 * direction of {@code direction}.
834 public static float nextAfter(float start, double direction) {
847 if (isNaN(start) || isNaN(direction)) {
849 return start + (float)direction;
850 } else if (start == direction) {
851 return (float)direction;
852 } else { // start > direction or start < direction
866 * is in the opposite direction than would be expected at
869 if (direction > start) {// Calculate next greater value
872 assert direction < start;
896 * the direction of positive infinity. This method is
931 * the direction of positive infinity. This method is
966 * the direction of negative infinity. This method is
1003 * the direction of negative infinity. This method is