mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-08 03:18:12 +08:00
Bezier-rs: Added function to find intersections between a bezier and a rectangle (#897)
* added function to find intersections for a rectangle * Added is_contained_within function
This commit is contained in:
committed by
Keavon Chambers
parent
9973e17479
commit
14cccc581e
@@ -554,6 +554,14 @@ export default defineComponent({
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "Intersect (Rectangle)",
|
||||
callback: (bezier: WasmBezierInstance): string =>
|
||||
bezier.intersect_rectangle([
|
||||
[50, 50],
|
||||
[150, 150],
|
||||
]),
|
||||
},
|
||||
{
|
||||
name: "Rotate",
|
||||
callback: (bezier: WasmBezierInstance, options: Record<string, number>): string => bezier.rotate(options.angle * Math.PI, 100, 100),
|
||||
|
||||
Reference in New Issue
Block a user