de.tbosch.utilities.trigonometry
Class Circles

java.lang.Object
  extended by de.tbosch.utilities.trigonometry.Circles

public class Circles
extends java.lang.Object

Circle Class for functions on circles.

Author:
Thomas Bosch (tbosch@gmx.de)

Method Summary
static double getAngleBetweenCircles(int r1, int r2, int dx, int dy)
          Gets the angle between the x-axis and a line between two circles.
static double getAngleRadOfYcmAndXcm(int r1, int r2, int xCm, int yCm)
          Deprecated. Use getAngleBetweenCircles(int, int, int, int)
static java.awt.Point[] getCirclePoints(double radius, java.awt.Point middlepoint)
          Deprecated. Use Circle.getCirclePoints() instead
static int getVerticalDistance(float r1, float r2, int x, double angleDeg, boolean outerTangent)
          Gets the vertical distance (y-axis) between two circles (their middle points).
static int getYCmOfAngleAndXcm(int r1, int r2, int xCm, double angleDeg, boolean outerTangent)
          Deprecated. Use getVerticalDistance(float, float, int, double, boolean) instead
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCirclePoints

@Deprecated
public static java.awt.Point[] getCirclePoints(double radius,
                                                          java.awt.Point middlepoint)
Deprecated. Use Circle.getCirclePoints() instead


getYCmOfAngleAndXcm

@Deprecated
public static int getYCmOfAngleAndXcm(int r1,
                                                 int r2,
                                                 int xCm,
                                                 double angleDeg,
                                                 boolean outerTangent)
Deprecated. Use getVerticalDistance(float, float, int, double, boolean) instead


getVerticalDistance

public static int getVerticalDistance(float r1,
                                      float r2,
                                      int x,
                                      double angleDeg,
                                      boolean outerTangent)
Gets the vertical distance (y-axis) between two circles (their middle points).

Parameters:
outerTangent - if the outer tangent is prior
x - the x-distance between both middlepoints
angleDeg - the angle between the x-axis and a line between two circles (in degrees)
r1 - the radius of the first circle
r2 - the radius of the second circle
Returns:
the y-distance

getAngleRadOfYcmAndXcm

@Deprecated
public static double getAngleRadOfYcmAndXcm(int r1,
                                                       int r2,
                                                       int xCm,
                                                       int yCm)
Deprecated. Use getAngleBetweenCircles(int, int, int, int)


getAngleBetweenCircles

public static double getAngleBetweenCircles(int r1,
                                            int r2,
                                            int dx,
                                            int dy)
Gets the angle between the x-axis and a line between two circles.

Parameters:
dx - the x-distance of the middlepoints
dy - the y-distance of the middlepoints
r1 - the radius of the first circle
r2 - the radius of the second circle
Returns:
the angle in radians


Copyright © 2012. All Rights Reserved.