Java Array Cross Product crossProduct(int ax, int ay, int bx, int by, int cx, int cy)

Here you can find the source of crossProduct(int ax, int ay, int bx, int by, int cx, int cy)

Description

cross Product

License

Open Source License

Declaration

static private int crossProduct(int ax, int ay, int bx, int by, int cx, int cy) 

Method Source Code

//package com.java2s;
/******************************************************************************
 * Copyright (c) 2005, 2010 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors://  w ww  . ja v a  2  s  .co m
 *    IBM Corporation - initial API and implementation 
 ****************************************************************************/

public class Main {
    static private int crossProduct(int ax, int ay, int bx, int by, int cx, int cy) {
        return (ax - cx) * (by - cy) - (ay - cy) * (bx - cx);
    }
}

Related

  1. crossMuliply(double a, double b, double c)
  2. crossMult(int value, int maximum, int coefficient)
  3. crossProduct(double x1, double y1, double x2, double y2, double x3, double y3)
  4. crossProduct(double[] output, double[] a, double[] b)
  5. CrossProduct(final double[] vect1, final double[] vect2)
  6. crossProduct(Object[] firstArray, Object[]... otherArrays)