V3D

This a python binding to the C++ class Mantid::Kernel::V3D.

class mantid.kernel.V3D((object)arg1)
X((V3D)arg1) → float :

Returns the X coordinate

Y((V3D)arg1) → float :

Returns the Y coordinate

Z((V3D)arg1) → float :

Returns the Z coordinate

__init__((object)arg1) → None :
Construct a V3D at the origin
__init__( (object)arg1, (float)arg2, (float)arg3, (float)arg4) -> None :
Construct a V3D with X,Y,Z coordinates
angle((V3D)arg1, (V3D)arg2) → float :

Returns the angle between this vector and another

cross_prod((V3D)arg1, (V3D)arg2) → V3D :

Computes the cross product between this and another vector

directionAngles((V3D)arg1[, (bool)arg2]) → V3D :

Calculate direction angles from direction cosines

distance((V3D)arg1, (V3D)arg2) → float :

Returns the distance between this vector and another

getX((V3D)arg1) → float :

Returns the X coordinate

getY((V3D)arg1) → float :

Returns the Y coordinate

getZ((V3D)arg1) → float :

Returns the Z coordinate

norm((V3D)arg1) → float :

Calculates the length of the vector

norm2((V3D)arg1) → float :

Calculates the squared length of the vector

scalar_prod((V3D)arg1, (V3D)arg2) → float :

Computes the scalar product between this and another vector

zenith((V3D)arg1, (V3D)arg2) → float :

Returns the zenith between this vector and another