C
caixingmei520
Write methods
public static double angle(Point2D.Double p, Point2D.Double q)
public static double slope(Point2D.Double p, Point2D.Double q)
public static double perimeter(Ellipse2D.Double e)
public static double area(Ellipse2D.Double e)
that computes the angle between the x-axis and the line joining two
points (measured in degrees), the slope of that line, and the
perimeter and area of ellipse e. Add these methods to a class
Geometry. Supply suitable preconditions.
OPTIONAL
Write methods
public static boolean isInside(Point2D.Double p, Ellipse2D.Double e)
public static boolean isOnBoundary(Point2D.Double p, Ellipse2D.Double
e)
that test whether a point is inside or on the boundary of an ellipse.
You can’t use the method contains available from the Ellipse class.
Add the methods to the class Geometry.
sorry i'm really a newbie and i'm failing computer science class
can anyone please help me?
thanks very much
we didn't learn to use applet and panel yet
so please don't use those
thank you !!!!
public static double angle(Point2D.Double p, Point2D.Double q)
public static double slope(Point2D.Double p, Point2D.Double q)
public static double perimeter(Ellipse2D.Double e)
public static double area(Ellipse2D.Double e)
that computes the angle between the x-axis and the line joining two
points (measured in degrees), the slope of that line, and the
perimeter and area of ellipse e. Add these methods to a class
Geometry. Supply suitable preconditions.
OPTIONAL
Write methods
public static boolean isInside(Point2D.Double p, Ellipse2D.Double e)
public static boolean isOnBoundary(Point2D.Double p, Ellipse2D.Double
e)
that test whether a point is inside or on the boundary of an ellipse.
You can’t use the method contains available from the Ellipse class.
Add the methods to the class Geometry.
sorry i'm really a newbie and i'm failing computer science class
can anyone please help me?
thanks very much
we didn't learn to use applet and panel yet
so please don't use those
thank you !!!!