Here you can find the source of vectorLengthSquared(float vx, float vy, float vz)
public static final float vectorLengthSquared(float vx, float vy, float vz)
//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)); } }