Java Geometry Algorithm polarToPoint(double angle, double fx, double fy)

Here you can find the source of polarToPoint(double angle, double fx, double fy)

Description

polar To Point

License

Open Source License

Declaration

public static Point polarToPoint(double angle, double fx, double fy) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.awt.*;

public class Main {
    public static Point polarToPoint(double angle, double fx, double fy) {
        double si = Math.sin(angle);
        double co = Math.cos(angle);
        return new Point((int) (fx * co + 0.5D), (int) (fy * si + 0.5D));
    }/*from w w w.j a va 2 s  .  com*/
}

Related

  1. perpendicular(Point a, Point z, double aDist, double size, boolean clockwise)
  2. perpendicularScalarProjection(Point2D.Double projVec, Point2D.Double dir)
  3. plotBezier(GeneralPath path, @Nonnull Point2D p0, @Nonnull Point2D p1, @Nonnull Point2D p2, @Nonnull Point2D p3, int depth, double displacement)
  4. plus(Point point1, Point point2)
  5. polarPointAtInfinity(double angle)
  6. positiveAngleBetween3Points(Point2D.Double p1, Point2D.Double p2, Point2D.Double p3)
  7. preciseFrontBumperOffset( Point2D.Double sourceLocation, Point2D.Double botLocation)
  8. preprocess(Point2D pa, Point2D pb, Point2D pc)
  9. prodEscalar(Point2D p1, Point2D p2)