The Double class defines a point specified in double precision.
The Double class defines a point specified in double precision.
(->double)
(->double x y)
Constructor.
Constructs and initializes a Point2D with the specified coordinates.
x - the X coordinate of the newly constructed Point2D - double
y - the Y coordinate of the newly constructed Point2D - double
Constructor. Constructs and initializes a Point2D with the specified coordinates. x - the X coordinate of the newly constructed Point2D - `double` y - the Y coordinate of the newly constructed Point2D - `double`
(get-x this)
Returns the X coordinate of this Point2D in double precision.
returns: the X coordinate of this Point2D. - double
Returns the X coordinate of this Point2D in double precision. returns: the X coordinate of this Point2D. - `double`
(get-y this)
Returns the Y coordinate of this Point2D in double precision.
returns: the Y coordinate of this Point2D. - double
Returns the Y coordinate of this Point2D in double precision. returns: the Y coordinate of this Point2D. - `double`
(set-location this x y)
Sets the location of this Point2D to the specified double coordinates.
x - the new X coordinate of this Point2D - double
y - the new Y coordinate of this Point2D - double
Sets the location of this Point2D to the specified double coordinates. x - the new X coordinate of this Point2D - `double` y - the new Y coordinate of this Point2D - `double`
(to-string this)
Returns a String that represents the value of this Point2D.
returns: a string representation of this Point2D. - java.lang.String
Returns a String that represents the value of this Point2D. returns: a string representation of this Point2D. - `java.lang.String`
(x this)
Instance Field.
The X coordinate of this Point2D.
type: double
Instance Field. The X coordinate of this Point2D. type: double
(y this)
Instance Field.
The Y coordinate of this Point2D.
type: double
Instance Field. The Y coordinate of this Point2D. type: double
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close