Package com.agisoft.metashape
Class Vector2d
java.lang.Object
com.agisoft.metashape.Vector2d
public class Vector2d extends Object
-
Field Summary
Fields Modifier and Type Field Description protected booleanswigCMemOwn -
Constructor Summary
-
Method Summary
Modifier and Type Method Description Vector2dadd(Vector2d other)Vector sum.voiddelete()doubledot(Vector2d other)Dot product.protected voidfinalize()static longgetCPtr(Vector2d obj)double[]getData()doublegetX()doublegetY()Vector2dmul(double c)Multiplication by scalar.doublenorm()Vector norm.Vector2dnormalized()Normalized vector.voidsetX(double value)voidsetY(double value)Vector2dsub(Vector2d other)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() -
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.
-