Package com.agisoft.metashape
Class Vector2d
java.lang.Object
com.agisoft.metashape.Vector2d
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionVector sum.static long[]cArrayUnwrap(Vector2d[] arrayWrapper) static Vector2d[]cArrayWrap(long[] cArray, boolean cMemoryOwn) voiddelete()doubleDot product.protected voidfinalize()static longdouble[]getData()doublegetX()doublegetY()mul(double c) Multiplication by scalar.doublenorm()Vector norm.Normalized vector.voidsetX(double value) voidsetY(double value) Vector difference.
-
Field Details
-
swigCMemOwn
protected transient boolean swigCMemOwn
-
-
Constructor Details
-
Vector2d
public Vector2d(long cPtr, boolean cMemoryOwn) -
Vector2d
public Vector2d() -
Vector2d
public Vector2d(double x, double y) -
Vector2d
public Vector2d(double[] data)
-
-
Method Details
-
getCPtr
-
finalize
protected void finalize() -
delete
public void delete() -
cArrayUnwrap
-
cArrayWrap
-
getX
public double getX() -
getY
public double getY() -
setX
public void setX(double value) -
setY
public void setY(double value) -
getData
public double[] getData() -
dot
Dot product. -
mul
Multiplication by scalar. -
add
Vector sum. -
sub
Vector difference. -
norm
public double norm()Vector norm. -
normalized
Normalized vector.
-