tornadofx / tornadofx / javafx.geometry.Point2D

Extensions for javafx.geometry.Point2D

angle infix fun Point2D.angle(other: Point2D): Double
cross infix fun Point2D.cross(other: Point2D): Point3D
distance infix fun Point2D.distance(other: Point2D): Double
div operator fun Point2D.div(divisor: Double): Point2D
dot infix fun Point2D): Double
magnitude2 fun Point2D.magnitude2(): Double

Returns the squared length of the vector/point.

midPoint infix fun Point2D.midPoint(other: Point2D): Point2D
minus operator fun Point2D.minus(other: Point2D): Point2D
operator fun Point2D.minus(value: Double): Point2D
plus operator fun Point2D): Point2D
operator fun Double): Point2D
times operator fun Point2D.times(factor: Double): Point2D
unaryMinus operator fun Point2D.unaryMinus(): Point2D
xx val Point2D.xx: Point2D
xxx val Point3D
xxy val Point2D.xxy: Point3D
xy val Point2D.xy: Point2D
xyx val Point2D.xyx: Point3D
xyy val Point2D.xyy: Point3D
yx val Point2D.yx: Point2D
yxx val Point2D.yxx: Point3D
yxy val Point2D.yxy: Point3D
yy val Point2D.yy: Point2D
yyx val Point2D.yyx: Point3D
yyy val Point2D.yyy: Point3D