Java Geometry Algorithm prodEscalar(Point2D p1, Point2D p2)

Here you can find the source of prodEscalar(Point2D p1, Point2D p2)

Description

prod Escalar

License

Open Source License

Declaration

private static double prodEscalar(Point2D p1, Point2D p2) 

Method Source Code

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

import java.awt.geom.*;

public class Main {
    private static double prodEscalar(Point2D p1, Point2D p2) {
        double d = p1.getX() * p2.getX() + p1.getY() * p2.getY();
        return d;
    }/*www .  jav a  2 s.c  om*/
}

Related

  1. polarPointAtInfinity(double angle)
  2. polarToPoint(double angle, double fx, double fy)
  3. positiveAngleBetween3Points(Point2D.Double p1, Point2D.Double p2, Point2D.Double p3)
  4. preciseFrontBumperOffset( Point2D.Double sourceLocation, Point2D.Double botLocation)
  5. preprocess(Point2D pa, Point2D pb, Point2D pc)
  6. project(Point2D sourceLocation, double angle, double length)
  7. project(Point2D.Double sourceLocation, double angle, double length)
  8. projectionFactor(Point pt, Point start, Point stop)
  9. projectPoint(float x, float y, Line2D ray, float distance)