Package com.agisoft.metashape
Class Vector3d
java.lang.Object
com.agisoft.metashape.Vector3d
public class Vector3d extends Object
-
Field Summary
Fields Modifier and Type Field Description protected booleanswigCMemOwn -
Constructor Summary
-
Method Summary
Modifier and Type Method Description Vector3dadd(Vector3d other)Vector sum.Vector3dcross(Vector3d other)Cross product.voiddelete()doubledot(Vector3d other)Dot product.protected voidfinalize()static longgetCPtr(Vector3d obj)double[]getData()doublegetX()X component.doublegetY()Y component.doublegetZ()Z component.Vector3dmul(double c)Multiplication by scalar.doublenorm()Vector norm.Vector3dnormalized()Normalized vector.voidsetX(double value)X component.voidsetY(double value)Y component.voidsetZ(double value)Z component.Vector3dsub(Vector3d other)Vector difference.
-
Field Details
-
swigCMemOwn
protected transient boolean swigCMemOwn
-
-
Constructor Details
-
Vector3d
public Vector3d(long cPtr, boolean cMemoryOwn) -
Vector3d
public Vector3d() -
Vector3d
public Vector3d(double x, double y, double z) -
Vector3d
public Vector3d(double[] data)
-
-
Method Details
-
getCPtr
-
finalize
protected void finalize() -
delete
public void delete() -
getX
public double getX()X component. -
getY
public double getY()Y component. -
getZ
public double getZ()Z component. -
setX
public void setX(double value)X component. -
setY
public void setY(double value)Y component. -
setZ
public void setZ(double value)Z component. -
getData
public double[] getData() -
dot
Dot product. -
mul
Multiplication by scalar. -
add
Vector sum. -
sub
Vector difference. -
cross
Cross product. -
norm
public double norm()Vector norm. -
normalized
Normalized vector.
-