MCPcopy Create free account
hub / github.com/TheAlgorithms/Java / rfpart

Method rfpart

src/main/java/com/thealgorithms/geometry/WusLine.java:222–224  ·  view source on GitHub ↗

Returns the reverse fractional part of a number (1 - fractional part). @param x the input number @return 1.0 minus the fractional part (always in range (0.0, 1.0])

(double x)

Source from the content-addressed store, hash-verified

220 * @return 1.0 minus the fractional part (always in range (0.0, 1.0])
221 */
222 private static double rfpart(double x) {
223 return 1.0 - fpart(x);
224 }
225
226 /**
227 * Rounds a number to the nearest integer.

Callers 3

processEndpointMethod · 0.95
addEndpointPixelsMethod · 0.95
drawMainLineMethod · 0.95

Calls 1

fpartMethod · 0.95

Tested by

no test coverage detected