Class EDU.emporia.mathbeans.Ellipse
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class EDU.emporia.mathbeans.Ellipse

Object
   |
   +----ParametricCurve
           |
           +----EDU.emporia.mathbeans.Ellipse

public class Ellipse
extends ParametricCurve
A paramerized ellipse

Version:
1.0
Author:
Joe Yanik
Since:
7/3/00

Variable Index

 o xCenter
The x-coordinate of the center
 o xRadius
The radius in the x-direction
 o yCenter
The y-coordinate of the center
 o yRadius
The radius in the y-direction

Constructor Index

 o EDU.emporia.mathbeans.Ellipse()

Method Index

 o getPoint(double)
The point on the ellipse at the indicated parameter
 o getXCenter()
Gets the x-coordinate of the center of the ellipse
 o getXRadius()
Gets the radius of the axis of the ellipse that is parallel to the x-axis
 o getYCenter()
Gets the y-coordinate of the center of the ellipse
 o getYRadius()
Gets the radius of the axis of the ellipse that is parallel to the y-axis
 o setXCenter(double)
Sets the x-coordinate of the center of the ellipse
 o setXRadius(double)
Sets the radius of the axis of the ellipse that is parallel to the x-axis
 o setYCenter(double)
Sets the y-coordinate of the center of the ellipse
 o setYRadius(double)
Sets the radius of the axis of the ellipse that is parallel to the y-axis

Variables

 o xCenter
protected double xCenter
The x-coordinate of the center

 o xRadius
protected double xRadius
The radius in the x-direction

 o yCenter
protected double yCenter
The y-coordinate of the center

 o yRadius
protected double yRadius
The radius in the y-direction

Constructors

 o Ellipse
public Ellipse()

Methods

 o getPoint
public EDU.emporia.mathtools.Point2D getPoint(double u)
The point on the ellipse at the indicated parameter

Parameters:
u - The parameter
Returns:
The point
Overrides:
getPoint in class ParametricCurve
 o getXCenter
public double getXCenter()
Gets the x-coordinate of the center of the ellipse

Returns:
The x-coordinate of the center
 o getXRadius
public double getXRadius()
Gets the radius of the axis of the ellipse that is parallel to the x-axis

Returns:
The radius of the axis of the ellipse that is parallel to the x-axis
 o getYCenter
public double getYCenter()
Gets the y-coordinate of the center of the ellipse

Returns:
The y-coordinate of the center
 o getYRadius
public double getYRadius()
Gets the radius of the axis of the ellipse that is parallel to the y-axis

Returns:
The radius of the axis of the ellipse that is parallel to the y-axis
 o setXCenter
public void setXCenter(double xCenter)
Sets the x-coordinate of the center of the ellipse

Parameters:
xCenter - The x-coordinate of the center
 o setXRadius
public void setXRadius(double xRadius)
Sets the radius of the axis of the ellipse that is parallel to the x-axis

Parameters:
xRadius - The radius of the axis of the ellipse that is parallel to the x-axis
 o setYCenter
public void setYCenter(double yCenter)
Sets the y-coordinate of the center of the ellipse

Parameters:
yCenter - The y-coordinate of the center
 o setYRadius
public void setYRadius(double yRadius)
Sets the radius of the axis of the ellipse that is parallel to the y-axis

Parameters:
yRadius - The radius of the axis of the ellipse that is parallel to the y-axis

All Packages  Class Hierarchy  This Package  Previous  Next  Index