Uses of Class
Jcg.geometry.Rational
Packages that use Rational
-
Uses of Rational in Jcg.geometry
Fields in Jcg.geometry declared as RationalModifier and TypeFieldDescriptionstatic RationalRational.ONEthe fraction 1/1RationalPoint_2.xgeometric coordinates of the points (rational numbers)RationalPoint_2.ygeometric coordinates of the points (rational numbers)static RationalRational.ZEROthe fraction 0/1Methods in Jcg.geometry that return RationalModifier and TypeMethodDescriptionRational.abs()RationalPoint_2.getCartesian(int dim) Return the d-th coordinate of the pointRationalPoint_2.getX()Return the x-coordinateRationalPoint_2.getY()Return the y-coordinatestatic RationalReturn the product of the curren value (this) times b, staving off overflow as much as possible by cross-cancellationRational.negate()Rational.reciprocal()RationalPoint_2.squareDistance(Point_ o) Return the square of the Euclidean distance between the current point 'this' and a point oReturn the difference between the current value and bMethods in Jcg.geometry with parameters of type RationalModifier and TypeMethodDescriptionintstatic RationalReturn the product of the curren value (this) times b, staving off overflow as much as possible by cross-cancellationReturn the difference between the current value and bConstructors in Jcg.geometry with parameters of type RationalModifierConstructorDescriptionRationalPoint_2(Rational x, Rational y) Initialize a 2D point with rational coordinates.RationalPoint_2(Rational x, Rational y, int index) Initialize a 2D points with rational coordinates, and an index