Skip to content

Commit eef780a

Browse files
committed
fix pathseg_points function
1 parent ebf7481 commit eef780a

File tree

1 file changed

+2
-2
lines changed
  • node-graph/gcore/src/subpath

1 file changed

+2
-2
lines changed

node-graph/gcore/src/subpath/core.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ impl PathSegPoints {
2121
pub fn pathseg_points(segment: PathSeg) -> PathSegPoints {
2222
match segment {
2323
PathSeg::Line(line) => PathSegPoints::new(point_to_dvec2(line.p0), None, None, point_to_dvec2(line.p1)),
24-
PathSeg::Quad(quad) => PathSegPoints::new(point_to_dvec2(quad.p0), None, Some(point_to_dvec2(quad.p1)), point_to_dvec2(quad.p1)),
25-
PathSeg::Cubic(cube) => PathSegPoints::new(point_to_dvec2(cube.p0), Some(point_to_dvec2(cube.p1)), Some(point_to_dvec2(cube.p2)), point_to_dvec2(cube.p1)),
24+
PathSeg::Quad(quad) => PathSegPoints::new(point_to_dvec2(quad.p0), None, Some(point_to_dvec2(quad.p1)), point_to_dvec2(quad.p2)),
25+
PathSeg::Cubic(cube) => PathSegPoints::new(point_to_dvec2(cube.p0), Some(point_to_dvec2(cube.p1)), Some(point_to_dvec2(cube.p2)), point_to_dvec2(cube.p3)),
2626
}
2727
}
2828

0 commit comments

Comments
 (0)