Java Vector Length Get vectorLengthSquared(float vx, float vy, float vz)

Here you can find the source of vectorLengthSquared(float vx, float vy, float vz)

Description

vector Length Squared

License

Open Source License

Return

the squared length of a vector

Declaration

public static final float vectorLengthSquared(float vx, float vy, float vz) 

Method Source Code

//package com.java2s;

public class Main {
    /**/*from  w  w w . j  av a 2  s  .  c  om*/
     * @return the squared length of a vector
     */
    public static final float vectorLengthSquared(float vx, float vy, float vz) {
        return ((vx * vx) + (vy * vy) + (vz * vz));
    }
}

Related

  1. vectorLength(double[] vector)
  2. vectorLength(Double[] vector)
  3. vectorLength(double[] vector)
  4. vectorLengthDyDx(double dy, double dx)