diff --git a/orx-shapes/src/commonMain/kotlin/adjust/ContourAdjusterVertex.kt b/orx-shapes/src/commonMain/kotlin/adjust/ContourAdjusterVertex.kt index 9f695a00..b2516b6b 100644 --- a/orx-shapes/src/commonMain/kotlin/adjust/ContourAdjusterVertex.kt +++ b/orx-shapes/src/commonMain/kotlin/adjust/ContourAdjusterVertex.kt @@ -10,6 +10,11 @@ class ContourAdjusterVertex(val contourAdjuster: ContourAdjuster, val segmentInd contourAdjuster.updateSelection(newVertex.adjustments) } + val position: Vector2 + get() { + return contourAdjuster.contour.segments[segmentIndex()].start + } + fun select() { contourAdjuster.selectVertex(segmentIndex()) }