Spec-Zone .ru
спецификации, руководства, описания, API

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

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
public-initxNumber0.0

The x coordinate.

public-inityNumber0.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 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