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

Function dot

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

Source from the content-addressed store, hash-verified

4#define PP(pp) pair<point,point> &pp
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)) {

Callers 3

projFunction · 0.85
angleFunction · 0.85
closest_pointFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected