public final class Vector3d extends Tuple3d
We consider a vector to be a tuple with additional magnitude and direction, to give a physical interpretation.
Constructor and Description |
---|
Vector3d() |
Vector3d(double x,
double y,
double z)
Create with values for each dimension.
|
Vector3d(Tuple3d tuple)
Creates with the same values as an existing
Tuple3d . |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
Vector3d |
crossProduct(Vector3d other)
Computes the cross-product of the
tuple with another.
|
boolean |
equals(Object o) |
int |
hashCode() |
absolute, add, add, add, divideBy, divideBy, dotProduct, increment, incrementX, incrementY, incrementZ, length, normalize, scale, scaleXY, setValueByDimension, setX, setX, setY, setY, setZ, setZ, subtract, toString, valueByDimension, valueByDimension, x, y, z
public Vector3d(Tuple3d tuple)
Tuple3d
.tuple
- to copy values from.public Vector3d(double x, double y, double z)
x
- the value for the X-dimension.y
- the value for the Y-dimension.z
- the value for the Z-dimension.public Vector3d()
public Vector3d crossProduct(Vector3d other)
other
- the other tuple to use in the dot product operation.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.