feat(文件拆分): 拆分几何三维基础能力
build.yaml / build (push) Successful in 48s

This commit is contained in:
xiaoqidun committed 2026-10-14 00:44:44 +08:00
1 parent 64f9ec4241
commit 0be872691d
76 files changed
+1926 -1307

No files matched your search

+2 -1
View File
@@ -18,6 +18,7 @@ import (
"bytes"
"context"
"fmt"
basegeom "github.com/xiaoqidun/ofdgo/internal/base/geom"
"image"
"math"
@@ -177,7 +178,7 @@ func imageClipContains(img image.Image, clipPath *canvas.Path, m canvas.Matrix)
if rect, ok := rectangularPath(clipPath); ok {
return rect.Contains(outline.FastBounds())
}
if geometryConvexContains(*geometryFromCanvasPath(clipPath), *geometryFromCanvasPath(outline)) {
if basegeom.ConvexContains(basegeom.Path(*geometryFromCanvasPath(clipPath)), basegeom.Path(*geometryFromCanvasPath(outline))) {
return true
}
return clipPath.Contains(outline)