MCPcopy Create free account
hub / github.com/WayfireWM/wayfire / cross

Function cross

plugins/single_plugins/wrot.cpp:20–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18static const char *transformer_2d = "wrot-2d";
19
20static double cross(double x1, double y1, double x2, double y2) // cross product
21{
22 return x1 * y2 - x2 * y1;
23}
24
25static double vlen(double x1, double y1) // length of vector centered at the origin
26{

Callers 1

motion_2dMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected