Cartesian2

external class Cartesian2(var x: Double = definedExternally, var y: Double = definedExternally)(source)

A 2D Cartesian point.

See also

Constructors

Link copied to clipboard
constructor(x: Double = definedExternally, y: Double = definedExternally)

Types

Link copied to clipboard

Properties

Link copied to clipboard
var x: Double

The X component. Default value - 0.0

Link copied to clipboard
var y: Double

The Y component. Default value - 0.0

Functions

Link copied to clipboard
fun clone(result: Cartesian2? = definedExternally): Cartesian2

Duplicates this Cartesian2 instance.

Link copied to clipboard
fun equalsEpsilon(right: Cartesian2? = definedExternally, relativeEpsilon: Double? = definedExternally, absoluteEpsilon: Double? = definedExternally): Boolean

Compares this Cartesian against the provided Cartesian componentwise and returns true if they pass an absolute or relative tolerance test, false otherwise.