MPoint

Deprecated

Use Point instead

Constructors

Link copied to clipboard
constructor(p: Point)
constructor(x: Float, y: Float)
constructor(x: Int, y: Int)
constructor(x: Double, y: Double)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var x: Double
Link copied to clipboard
var y: Double

Functions

Link copied to clipboard
fun add(p: MPoint): MPoint
fun add(p: Point): MPoint
fun add(x: Double, y: Double): MPoint
Link copied to clipboard
fun angleTo(other: MPoint): Angle
fun angleTo(other: Point): Angle
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun ceil(): MPoint
Link copied to clipboard
fun MPoint.clamp(min: Double, max: Double, out: MPoint = MPoint()): MPoint
Link copied to clipboard
fun clear(): MPoint
Link copied to clipboard
open operator override fun compareTo(other: MPoint): Int
Link copied to clipboard
fun copy(): MPoint
Link copied to clipboard
fun copyFrom(that: MPoint): MPoint
fun copyFrom(that: Point): MPoint
Link copied to clipboard
Link copied to clipboard
operator fun div(that: MPoint): MPoint
operator fun div(scale: Double): MPoint
operator fun div(scale: Float): MPoint
operator fun div(scale: Int): MPoint
Link copied to clipboard
operator fun divAssign(that: MPoint)
operator fun divAssign(scale: Double)
Link copied to clipboard
infix fun dot(that: MPoint): Double
Link copied to clipboard
fun floor(): MPoint
Link copied to clipboard
operator fun get(index: Int): Double
Link copied to clipboard
open override fun interpolateWith(ratio: Ratio, other: MPoint): MPoint
Link copied to clipboard
open override fun isAlmostEquals(other: MPoint, epsilon: Double): Boolean
Link copied to clipboard
operator fun minus(that: MPoint): MPoint
Link copied to clipboard
operator fun minusAssign(that: MPoint)
Link copied to clipboard
fun mul(s: Double): MPoint
fun mul(s: Float): MPoint
fun mul(s: Int): MPoint
Link copied to clipboard
fun neg(): MPoint
Link copied to clipboard
fun niceStr(decimalPlaces: Int): String
Link copied to clipboard
fun normalize()
Link copied to clipboard
operator fun plus(that: MPoint): MPoint
Link copied to clipboard
operator fun plusAssign(that: MPoint)
Link copied to clipboard
operator fun remAssign(that: MPoint)
operator fun remAssign(scale: Double)
Link copied to clipboard
fun rotate(rotation: Angle, out: MPoint = MPoint()): MPoint
Link copied to clipboard
fun round(): MPoint
Link copied to clipboard
fun setTo(p: Point): MPoint
fun setTo(x: Double, y: Double): MPoint
fun setTo(x: Float, y: Float): MPoint
fun setTo(x: Int, y: Int): MPoint
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun setToInterpolated(ratio: Ratio, l: MPoint, r: MPoint): MPoint
fun setToInterpolated(ratio: Ratio, lx: Double, ly: Double, rx: Double, ry: Double): MPoint
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Rotates the vector/point -90 degrees (not normalizing it)

Link copied to clipboard
Link copied to clipboard
fun setToPolar(angle: Angle, length: Double = 1.0): MPoint

Updates a point from polar coordinates determined by an angle and a length. Angle 0 is pointing to the right, and the direction is counter-clock-wise

fun setToPolar(base: MPoint, angle: Angle, length: Double = 1.0): MPoint
fun setToPolar(base: Point, angle: Angle, length: Float = 1.0f): MPoint
fun setToPolar(x: Double, y: Double, angle: Angle, length: Double = 1.0): MPoint
fun setToPolar(x: Float, y: Float, angle: Angle, length: Float = 1.0f): MPoint
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun sub(p: MPoint): MPoint
fun sub(p: Point): MPoint
fun sub(x: Double, y: Double): MPoint
Link copied to clipboard
operator fun times(that: MPoint): MPoint
operator fun times(scale: Double): MPoint
operator fun times(scale: Float): MPoint
operator fun times(scale: Int): MPoint
Link copied to clipboard
operator fun timesAssign(that: MPoint)
operator fun timesAssign(scale: Double)
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun transformed(mat: MMatrix, out: MPoint = MPoint()): MPoint
Link copied to clipboard
Link copied to clipboard