Java Geometry Algorithm polarPointAtInfinity(double angle)

Here you can find the source of polarPointAtInfinity(double angle)

Description

Creates a point-at-infinity using a specified angle.

License

Apache License

Parameter

Parameter Description
angle the angle to palce the point at

Return

a point at infinity, represented in polar terms

Declaration

public static Point2D.Double polarPointAtInfinity(double angle) 

Method Source Code


//package com.java2s;
/*/* w  w  w.  jav a 2  s.c  om*/
 * #%L
 * BlaiseMath
 * --
 * Copyright (C) 2009 - 2015 Elisha Peterson
 * --
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * #L%
 */

import java.awt.geom.Point2D;

public class Main {
    /**
     * Creates a point-at-infinity using a specified angle.
     * @param angle the angle to palce the point at
     * @return a point at infinity, represented in polar terms
     */
    public static Point2D.Double polarPointAtInfinity(double angle) {
        return new Point2D.Double(Double.POSITIVE_INFINITY, angle);
    }
}

Related

  1. parameterizeCurve(Point[] coefficients, Point startPoint, Point endPoint, Point controlPoint1, Point controlPoint2)
  2. perpendicular(Point a, Point z, double aDist, double size, boolean clockwise)
  3. perpendicularScalarProjection(Point2D.Double projVec, Point2D.Double dir)
  4. plotBezier(GeneralPath path, @Nonnull Point2D p0, @Nonnull Point2D p1, @Nonnull Point2D p2, @Nonnull Point2D p3, int depth, double displacement)
  5. plus(Point point1, Point point2)
  6. polarToPoint(double angle, double fx, double fy)
  7. positiveAngleBetween3Points(Point2D.Double p1, Point2D.Double p2, Point2D.Double p3)
  8. preciseFrontBumperOffset( Point2D.Double sourceLocation, Point2D.Double botLocation)
  9. preprocess(Point2D pa, Point2D pb, Point2D pc)