Blyx Nest Blyx language
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.

Source repository · Package JSON

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

VersionPackageSource commitSHA-256
0.1.1Download ZIP · Browse files83ac2e34f94f1a5c1b37400eb7b67950068803944019b87c858e5360a30bd9ee886dfa21a0
0.1.0Download ZIP · Browse files6349f23784a4da39a8231bcad316ca400158a8797ddac8fe4b60efa4054d82d3fcff6faad8