MCPcopy Index your code
hub / github.com/processing/processing / isCCW

Method isCCW

core/src/processing/opengl/LineStroker.java:233–239  ·  view source on GitHub ↗
(int x0, int y0, int x1, int y1, int x2, int y2)

Source from the content-addressed store, hash-verified

231 }
232
233 private boolean isCCW(int x0, int y0, int x1, int y1, int x2, int y2) {
234 int dx0 = x1 - x0;
235 int dy0 = y1 - y0;
236 int dx1 = x2 - x1;
237 int dy1 = y2 - y1;
238 return (long) dx0 * dy1 < (long) dy0 * dx1;
239 }
240
241 private boolean side(int x, int y, int x0, int y0, int x1, int y1) {
242 long lx = x;

Callers 2

lineToImplMethod · 0.95
closeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected