2.5.11 - A Circle Object - JdlCircle

John W. Campbell

2.5.11.1 Introduction

This is a simple class to store the position and radius of a circle. It is used in this package to return a calculated set of circle parameters. The values are accessed as the public fields 'xcen', 'ycen' and 'rad'.

Constructor and Fields:

Class Details
Accessible Fields
Constructors

2.5.11.2 Class Details

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

2.5.11.3 Accessible Fields

The following accessible fields have been defined:

public double xcen
The 'x' position of the circle centre - 'xcen'.
public double ycen
The 'y' position of the circle centre - 'ycen'.
public double rad
The circle radius - 'rad'.

2.5.11.4 Constructors

2.5.11.4.1 Introduction

Two constructors are available, to construct a JdlCircle object from a set of double values or from a set of float values.

Constructors:

Constructor 1
Constructor 2

2.5.11.4.2 Constructor 1

Create a JdlCircle object from double values.

Constructor Definition:
JdlCircle(double xcen, double ycen, double rad)
Parameters List:
xcen
The 'x' centre position.
ycen
The 'y' centre position.
rad
The circle radius.

2.5.11.4.3 Constructor 2

Create a JdlCircle object from float values.

Constructor Definition:
JdlCircle(float xcen, float ycen, float rad)
Parameters List:
xcen
The 'x' centre position.
ycen
The 'y' centre position.
rad
The circle radius.

⇑ Up 2   ⇑ Up 1   ⇑ Top of this