public final class Vector3D extends Object
Modifier and Type | Field and Description |
---|---|
double |
x
the x-coordinate of this
Vector3D . |
double |
y
the y-coordinate of this
Vector3D . |
double |
z
the homogeneous coordinate of this
Vector3D . |
Constructor and Description |
---|
Vector3D(double px,
double py,
double pz)
Constructs a new
Vector3D object with the given component values. |
Vector3D(Point p)
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
Vector3D |
getAdded(Vector3D other)
|
Vector3D |
getCopy()
Returns a copy of this
Vector3D . |
Vector3D |
getCrossProduct(Vector3D other)
|
double |
getDotProduct(Vector3D other)
Returns the dot-product of this and the given other
Vector3D . |
Vector3D |
getRatio(Vector3D other,
double t)
|
Vector3D |
getScaled(double f)
|
Vector3D |
getSubtracted(Vector3D other)
|
int |
hashCode() |
Point |
toPoint()
|
String |
toString() |
public double x
Vector3D
.public double y
Vector3D
.public double z
Vector3D
.public Vector3D(double px, double py, double pz)
Vector3D
object with the given component values.public double getDotProduct(Vector3D other)
Vector3D
.public Vector3D getScaled(double f)
Copyright (c) 2014 itemis AG, and others. All rights reserved.