MLine

data class MLine(var a: Point, var b: Point)

Deprecated

Use Line instead

Constructors

Link copied to clipboard
constructor()
constructor(p0: MPoint, p1: MPoint)
constructor(x0: Double, y0: Double, x1: Double, y1: Double)
constructor(x0: Float, y0: Float, x1: Float, y1: Float)
constructor(x0: Int, y0: Int, x1: Int, y1: Int)
constructor(a: Point, b: Point)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
var a: Point
Link copied to clipboard
Link copied to clipboard
var b: Point
Link copied to clipboard
Link copied to clipboard
val dx: Double
Link copied to clipboard
val dy: Double
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
val x0: Double
Link copied to clipboard
val x1: Double
Link copied to clipboard
val y0: Double
Link copied to clipboard
val y1: Double

Functions

Link copied to clipboard
fun clone(): MLine
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun directionVector(out: MPoint = MPoint()): MPoint
Link copied to clipboard
fun flipped(): MLine
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
fun round(): MLine
Link copied to clipboard
fun scalePoints(scale: Double): MLine
Link copied to clipboard
fun setTo(a: MPoint, b: MPoint): MLine
fun setTo(a: Point, b: Point): MLine
fun setTo(x0: Double, y0: Double, x1: Double, y1: Double): MLine
Link copied to clipboard
fun setToPolar(x: Double, y: Double, angle: Angle, length: Double = 1.0): MLine
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String