2.5.6 - A Value Pair Object - JdlXY

John W. Campbell

2.5.6.1 Introduction

This is a simple class to store a pair of 'double' values. It is used within this package as the returned object from a number of methods e.g. to return a coordinate pair. The 'double' values are accessible as the public fields 'x' and 'y'.

Constructors and Fields:

Class Details
Accessible Fields
Constructors

2.5.6.2 Class Details

Package:
Jdl.JdlLib;
Class name:
JdlXY
Class definition:
public class JdlXY
Extends:
Object
Implements:
none
Actions:
none

2.5.6.3 Accessible Fields

The following accessible fields have been defined:

public double x
The first of the double values - 'x'
public double y
The second of the double values - 'y'

2.5.6.4 Constructors

2.5.6.4.1 Introduction

Two constructors are available.

Constructors:

Constructor 1
Constructor 2

2.5.6.4.2 Constructor 1

Create a JdlXY object from two double values.

Constructor Definition:
public JdlXY(double x, double y)
Parameters List:
x
The first double value.
y
The second double value.

2.5.6.4.3 Constructor 2

Create a JdlXY object from two float values.

Constructor Definition:
public JdlXY(float x, float y)
Parameters List:
x
The first float value.
y
The second float value.

⇑ Up 2   ⇑ Up 1   ⇑ Top of this