1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-09-03 03:33:08 +02:00
This commit is contained in:
Justin Lin
2019-06-07 09:49:30 +08:00
parent 7648373e01
commit bb45854f33
6 changed files with 21 additions and 21 deletions

View File

@@ -1,4 +1,4 @@
# in_line
# in_polyline2d
Checks wether a point is on a line.
@@ -12,7 +12,7 @@ Checks wether a point is on a line.
## Examples
include <in_line.scad>;
include <in_polyline2d.scad>;
pts = [
[0, 0],
@@ -20,7 +20,7 @@ Checks wether a point is on a line.
[10, 10]
];
echo(in_line(pts, [-2, -3])); // false
echo(in_line(pts, [5, 0])); // true
echo(in_line(pts, [10, 5])); // true
echo(in_line(pts, [10, 15])); // false
echo(in_polyline2d(pts, [-2, -3])); // false
echo(in_polyline2d(pts, [5, 0])); // true
echo(in_polyline2d(pts, [10, 5])); // true
echo(in_polyline2d(pts, [10, 15])); // false