MCPcopy Create free account
hub / github.com/KAlO2/PerfectShow / distance

Method distance

src/com/cloudream/ishow/util/MathUtils.java:111–117  ·  view source on GitHub ↗
(float x1, float y1, float x2, float y2)

Source from the content-addressed store, hash-verified

109 }
110
111 public static float distance(float x1, float y1, float x2, float y2)
112 {
113 final float dx = (x2 - x1);
114 final float dy = (y2 - y1);
115// return (float) Math.hypot(x, y); // number too big consideration
116 return (float) Math.sqrt(dx * dx + dy * dy);
117 }
118
119 public static float distance(PointF p1, PointF p2)
120 {

Callers 1

markMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected