VectorUtils

object VectorUtils

Functions

calcAngleSnapDistance
Link copied to clipboard
fun calcAngleSnapDistance(radius: Float, snapRangeInPixel: Float): Float
cutVerticalIntersection
Link copied to clipboard
fun cutVerticalIntersection(rect: <ERROR CLASS>, top: Float, bottom: Float)
distance
Link copied to clipboard
fun distance(pos1: FloatArray, pos2: FloatArray): Float
fun distance(pos1X: Float, pos1Y: Float, pos2X: Float, pos2Y: Float): Float
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
getAngle
Link copied to clipboard
fun getAngle(centerPos: FloatArray, pointPos: FloatArray)
fun getAngle(centerPosX: Float, centerPosY: Float, pointPosX: Float, pointPosY: Float): Float
hashCode
Link copied to clipboard
open override fun hashCode(): Int
hasIntersection
Link copied to clipboard
fun hasIntersection(a: <ERROR CLASS>, b: <ERROR CLASS>): Boolean
fun hasIntersection(a: <ERROR CLASS>, b: <ERROR CLASS>): Boolean
fun hasIntersection(a: <ERROR CLASS>, b: <ERROR CLASS>): Boolean
fun hasIntersection(a: <ERROR CLASS>, b: <ERROR CLASS>): Boolean
mapFromSnapSystem
Link copied to clipboard
fun mapFromSnapSystem(value: Float, sortedSnapPoints: FloatArray, snapRange: Float, extendedRange: Boolean, snapped: BooleanArray?): Float
mapToRotatedSource
Link copied to clipboard
fun mapToRotatedSource(rect: <ERROR CLASS>, source: <ERROR CLASS>, rotation90deg: Int)
fun mapToRotatedSource(rect: <ERROR CLASS>, sourceWidth: Float, sourceHeight: Float, rotation90deg: Int)
mapToSnapSystem
Link copied to clipboard
fun mapToSnapSystem(value: Float, sortedSnapPoints: FloatArray, snapRange: Float, extendedRange: Boolean): Float
reversePointsPositions
Link copied to clipboard
fun reversePointsPositions(srcArray: FloatArray, pointSize: Int)
rotatePointsAroundCenter
Link copied to clipboard
fun rotatePointsAroundCenter(x: Float, y: Float, angle: Float, points: FloatArray): FloatArray
fun rotatePointsAroundCenter(matrixDummy: <ERROR CLASS>, centerX: Float, centerY: Float, angle: Float, points: FloatArray): FloatArray
shiftPointsPositions
Link copied to clipboard
fun shiftPointsPositions(_offset: Int, srcArray: FloatArray, _destArray: FloatArray?): FloatArray
toString
Link copied to clipboard
open override fun toString(): String