public class BigVector
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
protected java.math.BigDecimal[] |
b |
|
static int |
SCALE |
|
static java.math.BigDecimal |
TWO |
|
static java.math.BigDecimal |
ZERO |
Constructor | Description |
---|---|
BigVector(double[] l) |
|
BigVector(int len) |
|
BigVector(long[] l) |
|
BigVector(BigVector v) |
|
BigVector(java.math.BigDecimal... vs) |
Modifier and Type | Method | Description |
---|---|---|
BigVector |
add(BigVector v) |
|
void |
addFrom(BigVector v) |
|
static java.math.BigDecimal |
bigSqrt(java.math.BigDecimal A) |
|
java.math.BigDecimal |
dotProduct(BigVector v) |
|
java.math.BigDecimal |
dotRemainder(BigVector v) |
|
int |
length() |
|
java.math.BigDecimal |
magnitude() |
|
BigVector |
scalarProduct(java.math.BigDecimal num) |
|
void |
scalarProductFrom(java.math.BigDecimal num) |
|
BigVector |
sphereToCartesian() |
|
BigVector |
subtract(BigVector v) |
|
void |
subtractFrom(BigVector v) |
|
double[] |
toDoubles() |
|
long[] |
toLongs() |
|
java.lang.String |
toString() |
|
java.math.BigDecimal |
unitDistanceFrom(BigVector v) |
|
BigVector |
unitVector() |
|
void |
unitVectorFrom() |
|
BigVector |
vectorProduct(BigVector v) |
|
void |
vectorProductFrom(BigVector v) |
|
java.math.BigDecimal |
x() |
|
java.math.BigDecimal |
y() |
|
java.math.BigDecimal |
z() |
public static final java.math.BigDecimal ZERO
public static final java.math.BigDecimal TWO
public static final int SCALE
protected final java.math.BigDecimal[] b
public BigVector(int len)
public BigVector(long[] l)
public BigVector(double[] l)
public BigVector(BigVector v)
public BigVector(java.math.BigDecimal... vs)
public final int length()
public java.math.BigDecimal x()
public java.math.BigDecimal y()
public java.math.BigDecimal z()
public void subtractFrom(BigVector v)
public void addFrom(BigVector v)
public static final java.math.BigDecimal bigSqrt(java.math.BigDecimal A)
public java.math.BigDecimal magnitude()
public BigVector unitVector()
public java.math.BigDecimal unitDistanceFrom(BigVector v)
public void unitVectorFrom()
public BigVector scalarProduct(java.math.BigDecimal num)
public void scalarProductFrom(java.math.BigDecimal num)
public java.math.BigDecimal dotProduct(BigVector v)
public BigVector sphereToCartesian()
public java.math.BigDecimal dotRemainder(BigVector v)
public void vectorProductFrom(BigVector v)
public double[] toDoubles()
public long[] toLongs()
public java.lang.String toString()
toString
in class java.lang.Object