MCPcopy Create free account
hub / github.com/SuprDewd/CompetitiveProgramming / cross

Function cross

code/geometry/primitives.cpp:7–7  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5typedef complex<double> point;
6double dot(P(a), P(b)) { return real(conj(a) * b); }
7double cross(P(a), P(b)) { return imag(conj(a) * b); }
8point rotate(P(p), double radians = pi / 2,
9 P(about) = point(0,0)) {
10 return (p - about) * exp(point(0, radians)) + about; }

Callers 8

polygon_area_signedFunction · 0.85
circumcircleFunction · 0.85
welzlFunction · 0.85
ccwFunction · 0.85
signed_angleFunction · 0.85
polygon_centroidFunction · 0.85
parallelFunction · 0.85
intersectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected