JavaFX: Bringing Rich Experiences To All the Screens Of Your Life

Profile: desktop, common

Overview

A 2D geometric point that represents the x, y coordinates.

Profile: common

Variable Summary

access name type Can Read Can Init Can Write Default Value description
public-init x Number 0.0

The x coordinate.

public-init y Number 0.0

The y coordinate.

Inherited Variables

Function Summary

public distance(x1: Number, y1: Number) : Number

Computes the distance between this point and point (x1, y1).

Computes the distance between this point and point (x1, y1).

Parameters
x1
the x coordinate of other point
y1
the y coordinate of other point
Returns
Number
the distance between this point and point (x1, y1) .

Profile: common

 
public distance(p: Point2D) : Number

Computes the distance between this point and point p.

Computes the distance between this point and point p.

Parameters
p
the other point
Returns
Number
the distance between this point and point p .

Profile: common

 
public equals(obj: java.lang.Object) : Boolean
Parameters
obj
Returns
Boolean
 
public hashCode() : Integer
Returns
Integer
 
public toString() : java.lang.String

Returns a string representation of this Point2D.

Returns a string representation of this Point2D. This method is intended to be used only for informational purposes. The content and format of the returned string might vary between implementations. The returned string might be empty but cannot be null.

Returns
String

Profile: common

 

Inherited Functions




Spec-Zone.ru - all specs in one place