public class Vector3D extends java.lang.Object implements com.esri.arcgis.interop.RemoteObjRef, IVector, IVector3D, IClone, ISupportErrorInfo
Description 'A 3D vector containing dx, dy, and dz components.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =
IID, IIDb3fa5971_ada3_11d2_9fae_00c04f8ece3d, xxDummyIID40d717c9_10c2_11d4_9f59_00c04f6bdf0dIID, IID9bff8aeb_e415_11d0_943c_080009eebecb, xxDummyIID, IIDdf0b3d60_548f_101b_8e65_08002b2bd119, xxDummy| Constructor and Description |
|---|
Vector3D()
Constructs a Vector3D using ArcGIS Engine.
|
Vector3D(java.lang.Object obj)
Deprecated.
As of ArcGIS 9.2, replaced by normal Java casts.
Vector3D theVector3D = (Vector3D) obj; |
| Modifier and Type | Method and Description |
|---|---|
IVector |
addVector(IVector otherVector)
Construct a new vector by adding a different vector to this vector.
|
void |
assign(IClone src)
Assigns the properties of src to the receiver.
|
void |
constructAddVector(IVector vector1,
IVector vector2)
Set this vector by adding two input vectors.
|
void |
constructCrossProduct(IVector vector1,
IVector vector2)
Set this vector equal to the cross product of the two input vectors.
|
void |
constructDifference(IPoint point1,
IPoint point2)
Set the vector by taking the difference of point1 and point2 (so the vector would go from point2 to point1).
|
void |
constructSubtractVector(IVector vector1,
IVector vector2)
Set this vector by subtracting the second input vector from the first one.
|
IVector |
crossProduct(IVector otherVector)
Returns the cross product of this vector and another vector.
|
double |
dotProduct(IVector otherVector)
Returns the dot product of this vector and another vector.
|
boolean |
equals(java.lang.Object o)
Compare this object with another
|
IClone |
esri_clone()
Clones the receiver and assigns the result to *clone.
|
double |
getAzimuth()
The vector's azimuth angle in radians.
|
static java.lang.String |
getClsid()
getClsid.
|
double |
getComponentByIndex(int componentIndex)
The component corresponding to a given index.
|
int |
getDimension()
The dimension of this vector.
|
double |
getInclination()
The vector's inclination in radians.
|
com.esri.arcgis.interop.Dispatch |
getJintegraDispatch()
Gets a reference to a com.esri.arcgis.interop.Dispatch which can be used to access the COM object that support for this
interface indicates the implementing class references.
|
double |
getMagnitude()
The length of the vector.
|
double |
getXComponent()
The vector's X component.
|
double |
getYComponent()
The vector's Y component.
|
double |
getZComponent()
The vector's Z component.
|
int |
hashCode()
the hashcode for this object
|
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo
|
boolean |
isEmpty()
Indicates if the vector is empty (unset).
|
boolean |
isEqual(IClone other)
Indicates if the receiver and other have the same properties.
|
boolean |
isIdentical(IClone other)
Indicates if the receiver and other are the same object.
|
void |
move(double dx,
double dy,
double dz)
Move the vector by adding a shift value to each component.
|
void |
normalize()
Normalize the vector (scale it to magnitude = 1).
|
void |
polarMove(double dAzimuth,
double dInclination,
double dRadius)
Modify the vector by adding to its polar components.
|
void |
polarQuery(double[] azimuth,
double[] inclination,
double[] radiusLength)
Get the vector's polar components.
|
void |
polarSet(double azimuth,
double inclination,
double radiusLength)
Set the vector using polar components.
|
void |
queryComponents(double[] dx,
double[] dy,
double[] dz)
Get the values of the vector's components.
|
void |
release()
Release this COM object reference
|
void |
rotate(double angle,
IVector3D axis)
Rotate the vector around an axis defined by another vector.
|
void |
scale(double scaleFactor)
Scale the vector by the given factor.
|
void |
setAzimuth(double azimuth)
The vector's azimuth angle in radians.
|
void |
setComponentByIndex(int componentIndex,
double componentValue)
The component corresponding to a given index.
|
void |
setComponents(double dx,
double dy,
double dz)
Set the values of the vector's components.
|
void |
setEmpty()
Makes the vector empty (unset).
|
void |
setInclination(double inclination)
The vector's inclination in radians.
|
void |
setMagnitude(double magnitude)
The length of the vector.
|
void |
setXComponent(double dx)
The vector's X component.
|
void |
setYComponent(double dy)
The vector's Y component.
|
void |
setZComponent(double dz)
The vector's Z component.
|
IVector |
subtractVector(IVector otherVector)
Construct a new vector by subtracting a different vector from this vector.
|
public Vector3D()
throws java.io.IOException,
java.net.UnknownHostException
java.io.IOException - if there are interop problemsjava.net.UnknownHostException - if there are interop problemspublic Vector3D(java.lang.Object obj)
throws java.io.IOException
Vector3D theVector3D = (Vector3D) obj;obj to Vector3D.obj - an object returned from ArcGIS Engine or Serverjava.io.IOException - if there are interop problemspublic static java.lang.String getClsid()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic com.esri.arcgis.interop.Dispatch getJintegraDispatch()
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRefpublic void release()
release in interface com.esri.arcgis.interop.RemoteObjRefpublic int getDimension()
throws java.io.IOException,
AutomationException
getDimension in interface IVectorjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public boolean isEmpty()
throws java.io.IOException,
AutomationException
isEmpty in interface IVectorjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void setEmpty()
throws java.io.IOException,
AutomationException
setEmpty in interface IVectorjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public double getComponentByIndex(int componentIndex)
throws java.io.IOException,
AutomationException
getComponentByIndex in interface IVectorcomponentIndex - The componentIndex (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void setComponentByIndex(int componentIndex,
double componentValue)
throws java.io.IOException,
AutomationException
setComponentByIndex in interface IVectorcomponentIndex - The componentIndex (in)componentValue - The componentValue (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public double getMagnitude()
throws java.io.IOException,
AutomationException
getMagnitude in interface IVectorjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void setMagnitude(double magnitude)
throws java.io.IOException,
AutomationException
setMagnitude in interface IVectormagnitude - The magnitude (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void normalize()
throws java.io.IOException,
AutomationException
normalize in interface IVectorjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void scale(double scaleFactor)
throws java.io.IOException,
AutomationException
scale in interface IVectorscaleFactor - The scaleFactor (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public IVector addVector(IVector otherVector) throws java.io.IOException, AutomationException
addVector in interface IVectorotherVector - A reference to a com.esri.arcgis.geometry.IVector (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public IVector subtractVector(IVector otherVector) throws java.io.IOException, AutomationException
subtractVector in interface IVectorotherVector - A reference to a com.esri.arcgis.geometry.IVector (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void constructAddVector(IVector vector1, IVector vector2) throws java.io.IOException, AutomationException
constructAddVector in interface IVectorvector1 - A reference to a com.esri.arcgis.geometry.IVector (in)vector2 - A reference to a com.esri.arcgis.geometry.IVector (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void constructSubtractVector(IVector vector1, IVector vector2) throws java.io.IOException, AutomationException
constructSubtractVector in interface IVectorvector1 - A reference to a com.esri.arcgis.geometry.IVector (in)vector2 - A reference to a com.esri.arcgis.geometry.IVector (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public double dotProduct(IVector otherVector) throws java.io.IOException, AutomationException
dotProduct in interface IVectorotherVector - A reference to a com.esri.arcgis.geometry.IVector (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public double getXComponent()
throws java.io.IOException,
AutomationException
getXComponent in interface IVector3Djava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void setXComponent(double dx)
throws java.io.IOException,
AutomationException
setXComponent in interface IVector3Ddx - The dx (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public double getYComponent()
throws java.io.IOException,
AutomationException
getYComponent in interface IVector3Djava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void setYComponent(double dy)
throws java.io.IOException,
AutomationException
setYComponent in interface IVector3Ddy - The dy (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public double getZComponent()
throws java.io.IOException,
AutomationException
getZComponent in interface IVector3Djava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void setZComponent(double dz)
throws java.io.IOException,
AutomationException
setZComponent in interface IVector3Ddz - The dz (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public double getInclination()
throws java.io.IOException,
AutomationException
getInclination in interface IVector3Djava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void setInclination(double inclination)
throws java.io.IOException,
AutomationException
setInclination in interface IVector3Dinclination - The inclination (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public double getAzimuth()
throws java.io.IOException,
AutomationException
getAzimuth in interface IVector3Djava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void setAzimuth(double azimuth)
throws java.io.IOException,
AutomationException
setAzimuth in interface IVector3Dazimuth - The azimuth (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void move(double dx,
double dy,
double dz)
throws java.io.IOException,
AutomationException
move in interface IVector3Ddx - The dx (in)dy - The dy (in)dz - The dz (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void queryComponents(double[] dx,
double[] dy,
double[] dz)
throws java.io.IOException,
AutomationException
queryComponents in interface IVector3Ddx - The dx (out: use single element array)dy - The dy (out: use single element array)dz - The dz (out: use single element array)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void setComponents(double dx,
double dy,
double dz)
throws java.io.IOException,
AutomationException
setComponents in interface IVector3Ddx - The dx (in)dy - The dy (in)dz - The dz (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void constructDifference(IPoint point1, IPoint point2) throws java.io.IOException, AutomationException
constructDifference in interface IVector3Dpoint1 - A reference to a com.esri.arcgis.geometry.IPoint (in)point2 - A reference to a com.esri.arcgis.geometry.IPoint (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void rotate(double angle,
IVector3D axis)
throws java.io.IOException,
AutomationException
rotate in interface IVector3Dangle - The angle (in)axis - A reference to a com.esri.arcgis.geometry.IVector3D (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void polarSet(double azimuth,
double inclination,
double radiusLength)
throws java.io.IOException,
AutomationException
polarSet in interface IVector3Dazimuth - The azimuth (in)inclination - The inclination (in)radiusLength - The radiusLength (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void polarQuery(double[] azimuth,
double[] inclination,
double[] radiusLength)
throws java.io.IOException,
AutomationException
polarQuery in interface IVector3Dazimuth - The azimuth (out: use single element array)inclination - The inclination (out: use single element array)radiusLength - The radiusLength (out: use single element array)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void polarMove(double dAzimuth,
double dInclination,
double dRadius)
throws java.io.IOException,
AutomationException
polarMove in interface IVector3DdAzimuth - The dAzimuth (in)dInclination - The dInclination (in)dRadius - The dRadius (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public IVector crossProduct(IVector otherVector) throws java.io.IOException, AutomationException
crossProduct in interface IVector3DotherVector - A reference to a com.esri.arcgis.geometry.IVector (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void constructCrossProduct(IVector vector1, IVector vector2) throws java.io.IOException, AutomationException
constructCrossProduct in interface IVector3Dvector1 - A reference to a com.esri.arcgis.geometry.IVector (in)vector2 - A reference to a com.esri.arcgis.geometry.IVector (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public IClone esri_clone() throws java.io.IOException, AutomationException
esri_clone in interface IClonejava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void assign(IClone src) throws java.io.IOException, AutomationException
assign in interface IClonesrc - A reference to a com.esri.arcgis.system.IClone (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public boolean isEqual(IClone other) throws java.io.IOException, AutomationException
isEqual in interface ICloneother - A reference to a com.esri.arcgis.system.IClone (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public boolean isIdentical(IClone other) throws java.io.IOException, AutomationException
isIdentical in interface ICloneother - A reference to a com.esri.arcgis.system.IClone (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void interfaceSupportsErrorInfo(GUID riid) throws java.io.IOException, AutomationException
interfaceSupportsErrorInfo in interface ISupportErrorInforiid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.