Java org.apache.commons.math.geometry Vector3D fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.math.geometry Vector3D fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.math.geometry Vector3D.

The text is from its open source code.

Subclass

org.apache.commons.math.geometry.Vector3D has subclasses.
Click this link to see all its subclasses.

Field

Vector3DPLUS_I
First canonical vector (coordinates: 1, 0, 0).
Vector3DPLUS_J
Second canonical vector (coordinates: 0, 1, 0).
Vector3DPLUS_K
Third canonical vector (coordinates: 0, 0, 1).

Constructor

Vector3D(double x, double y, double z)
Simple constructor.
Vector3D
Vector3D(double alpha, double delta)
Simple constructor.
Vector3D(double a, Vector3D u)
Multiplicative constructor Build a vector from another one and a scale factor.
Vector3D(double a1, Vector3D u1, double a2, Vector3D u2)
Linear constructor Build a vector from two other ones and corresponding scale factors.

Method

Vector3Dadd(double factor, Vector3D v)
Add a scaled vector to the instance.
Vector3Dadd(Vector3D v)
Add a vector to the instance.
Vector3DcrossProduct(Vector3D v1, Vector3D v2)
Compute the cross-product of two vectors.
doubledistance(Vector3D v1, Vector3D v2)
Compute the distance between two vectors according to the L2 norm.
doubledistanceSq(Vector3D v1, Vector3D v2)
Compute the square of the distance between two vectors.
doubledotProduct(Vector3D v1, Vector3D v2)
Compute the dot-product of two vectors.
doublegetAlpha()
Get the azimuth of the vector.
doublegetNorm()
Get the L2 norm for the vector.
doublegetNormSq()
Get the square of the norm for the vector.
doublegetX()
Get the abscissa of the vector.
doublegetY()
Get the ordinate of the vector.
doublegetZ()
Get the height of the vector.
Vector3Dnegate()
Get the opposite of the instance.
Vector3Dnormalize()
Get a normalized vector aligned with the instance.
Vector3Dsubtract(Vector3D v)
Subtract a vector from the instance.