Java Vector Vector2fNegate(float[] a, float[] dest)

Here you can find the source of Vector2fNegate(float[] a, float[] dest)

Description

Vectorf Negate

License

Open Source License

Declaration

public static void Vector2fNegate(float[] a, float[] dest) 

Method Source Code

//package com.java2s;
/*/*from   w w  w . ja  v  a2s  . com*/
 *    leola-live 
 *  see license.txt
 */

public class Main {
    /**
     * Float index for the X component
     */
    public static final int X = 0;
    /**
     * Float index for the Y component
     */
    public static final int Y = 1;

    public static void Vector2fNegate(float[] a, float[] dest) {
        dest[X] = -a[X];
        dest[Y] = -a[Y];
    }
}

Related

  1. removeDuplicateDomains(Vector s)
  2. removeDuplicates(Vector s)
  3. shiftIndicies(List list, int[] indicies, int shiftVector)
  4. vector(final float[] p2, final float[] p1)
  5. Vector2fMult(float[] a, float[] b, float[] dest)
  6. Vector2fNew()
  7. Vector2fNormalize(float[] a, float[] dest)
  8. vector2string(int[] vector)
  9. vector_dot(double[] vec1, double[] vec2)