Java Vector Subtract vectorSubstract(float x1, float y1, float x2, float y2)

Here you can find the source of vectorSubstract(float x1, float y1, float x2, float y2)

Description

vector Substract

License

Open Source License

Declaration

public static String vectorSubstract(float x1, float y1, float x2,
            float y2) 

Method Source Code

//package com.java2s;
/*/*from   www. j  ava  2s  .c  o  m*/
 * Copyright (C) Justo Montiel, David Torres, Sergio Gomez, Alberto Fernandez
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public License
 * as published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, see
 * <http://www.gnu.org/licenses/>
 */

public class Main {
    public static String vectorSubstract(float x1, float y1, float x2,
            float y2) {
        return (x1 + " " + y1 + " " + x2 + " " + y2 + " vsub");
    }
}

Related

  1. vectorSubtract(double[] v1, double[] v2)
  2. vectorSubtract(double[] v1, double[] v2)