public class GVector
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
private int length
double[] values
static final long serialVersionUID
public GVector(int length)
length - the number of elements in this GVector.public GVector(double[] vector)
vector - the values for the new GVector.public GVector(GVector vector)
vector - the source GVector for this new GVector.public GVector(Tuple2f tuple)
tuple - the source for the new GVector's initial valuespublic GVector(Tuple3f tuple)
tuple - the source for the new GVector's initial valuespublic GVector(Tuple3d tuple)
tuple - the source for the new GVector's initial valuespublic GVector(Tuple4f tuple)
tuple - the source for the new GVector's initial valuespublic GVector(Tuple4d tuple)
tuple - the source for the new GVector's initial valuespublic GVector(double[] vector,
int length)
length elements (i.e., vector.length >=
length. The length of this new GVector is set to
the specified length.vector - The array from which the values will be copied.length - The number of values copied from the array.Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.