ContourVertex

data class ContourVertex(val contour: ShapeContour, val segmentIndex: Int, val adjustments: List<SegmentOperation> = emptyList())(source)

Constructors

Link copied to clipboard
constructor(contour: ShapeContour, segmentIndex: Int, adjustments: List<SegmentOperation> = emptyList())

Properties

Link copied to clipboard
Link copied to clipboard
val contour: ShapeContour
Link copied to clipboard
val controlIn: Vector2?
Link copied to clipboard
val controlOut: Vector2?
Link copied to clipboard
val normal: Vector2
Link copied to clipboard
val position: Vector2
Link copied to clipboard
Link copied to clipboard
val t: Double
Link copied to clipboard
val tangentIn: Vector2?
Link copied to clipboard
val tangentOut: Vector2?

Functions

Link copied to clipboard
fun controlInMovedBy(translation: Vector2): ContourVertex
Link copied to clipboard
fun controlOutMovedBy(translation: Vector2): ContourVertex
Link copied to clipboard
fun movedBy(translation: Vector2, updateTangents: Boolean = true): ContourVertex
Link copied to clipboard
fun remove(updateTangents: Boolean = true): ContourVertex
Link copied to clipboard
fun rotatedBy(rotationInDegrees: Double): ContourVertex
fun rotatedBy(rotationInDegrees: Double, anchor: Vector2, updateTangents: Boolean = true): ContourVertex
Link copied to clipboard
fun scaledBy(scaleFactor: Double): ContourVertex
fun scaledBy(scaleFactor: Double, anchor: Vector2, updateTangents: Boolean = true): ContourVertex
Link copied to clipboard
fun ContourVertex.switchedTangents(preserveLength: Boolean = false): ContourVertex
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun transformedBy(updateTangents: Boolean = true, transform: (Vector2) -> Vector2): ContourVertex
fun transformedBy(transform: Matrix44, updateTangents: Boolean): ContourVertex
Link copied to clipboard
fun transformTangents(transformIn: Matrix44, transformOut: Matrix44 = transformIn): ContourVertex
Link copied to clipboard