Registry / Library

library · v0.1.1
Turn Orientation
Determine the direction of a planar turn from six coordinates. Returns one for counterclockwise, zero for collinear, minus one for clockwise.
Use Turn Orientation
use vendor::turn_orientation::turn_orientation;
Run the example
nest demo turn_orientation@0.1.1
blyxc native-run turn_orientation-demo/main.blyx
Example source and expected output
use vendor::turn_orientation::turn_orientation;
fn main() {
println!(turn_orientation(0.0,0.0,1.0,0.0,0.0,1.0));
}
Expected output
1
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.1 | Download ZIP · Browse files | 83ac2e34f9 | 4f1a5c1b37400eb7b67950068803944019b87c858e5360a30bd9ee886dfa21a0 |
| 0.1.0 | Download ZIP · Browse files | 6349f23784 | a4da39a8231bcad316ca400158a8797ddac8fe4b60efa4054d82d3fcff6faad8 |