Java Vector Vector2fMult(float[] a, float[] b, float[] dest)

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

Description

Vectorf Mult

License

Open Source License

Declaration

public static void Vector2fMult(float[] a, float[] b, float[] dest) 

Method Source Code

//package com.java2s;
/*/*from w  ww  .java2s .c o  m*/
 *    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 Vector2fMult(float[] a, float[] b, float[] dest) {
        dest[X] = a[X] * b[X];
        dest[Y] = a[Y] * b[Y];
    }

    public static void Vector2fMult(float[] a, float scalar, float[] dest) {
        dest[X] = a[X] * scalar;
        dest[Y] = a[Y] * scalar;
    }
}

Related

  1. normVector(List v1)
  2. removeDuplicateDomains(Vector s)
  3. removeDuplicates(Vector s)
  4. shiftIndicies(List list, int[] indicies, int shiftVector)
  5. vector(final float[] p2, final float[] p1)
  6. Vector2fNegate(float[] a, float[] dest)
  7. Vector2fNew()
  8. Vector2fNormalize(float[] a, float[] dest)
  9. vector2string(int[] vector)