Java Array Length Get LengthVec3D(double[] vec)

Here you can find the source of LengthVec3D(double[] vec)

Description

Length Vec D

License

Open Source License

Declaration

public static double LengthVec3D(double[] vec) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static double LengthVec3D(double[] vec) {
        return Math.sqrt(vec[0] * vec[0] + vec[1] * vec[1] + vec[2] * vec[2]);
    }//from   ww  w . java 2s.  c  o  m
}

Related

  1. lengthOf(T[] array)
  2. lengthOfShortestIn(String[] strings)
  3. lengthSQ(double[] vector)
  4. lengthToWrite(final byte[] data, final int offset, final int dataLength, final boolean rightTrim)
  5. lengthToZero(byte[] data, int offset)