ContourAdjusterVertex

class ContourAdjusterVertex(val contourAdjuster: ContourAdjuster, val segmentIndex: () -> Int)(source)

Constructors

Link copied to clipboard
constructor(contourAdjuster: ContourAdjuster, segmentIndex: () -> Int)

Properties

Link copied to clipboard
Link copied to clipboard
val controlIn: Vector2?
Link copied to clipboard
val controlOut: Vector2?
Link copied to clipboard
Link copied to clipboard
val normal: Vector2
Link copied to clipboard
val position: Vector2
Link copied to clipboard
Link copied to clipboard
val segmentIndex: () -> Int
Link copied to clipboard
val t: Double

Functions

Link copied to clipboard

Average the in and out tangents

Link copied to clipboard
fun moveBy(translation: Vector2, updateTangents: Boolean = true)
Link copied to clipboard
fun moveControlInBy(translation: Vector2)
Link copied to clipboard
fun moveControlOutBy(translation: Vector2)
Link copied to clipboard
fun moveTo(position: Vector2, updateTangents: Boolean = true)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun remove(updateTangents: Boolean = true)
Link copied to clipboard
fun rotate(rotationInDegrees: Double)
fun rotate(rotationInDegrees: Double, anchor: Vector2)
Link copied to clipboard
fun scale(scaleFactor: Double)
fun scale(scaleFactor: Double, anchor: Vector2)
Link copied to clipboard
fun select()
Link copied to clipboard
fun ContourAdjusterVertex.switchTangents(preserveLength: Boolean = false)

Switch in and out tangents

Link copied to clipboard
fun wrap(block: ContourVertex.() -> ContourVertex)