V3D

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

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

Returns the X coordinate

Y((V3D)self) → float :

Returns the Y coordinate

Z((V3D)self) → 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)self, (V3D)other) → float :

Returns the angle between this vector and another

cross_prod((V3D)self, (V3D)other) → V3D :

Computes the cross product between this and another vector

directionAngles((V3D)self[, (bool)inDegrees]) → V3D :

Calculate direction angles from direction cosines

distance((V3D)self, (V3D)other) → float :

Returns the distance between this vector and another

getX((V3D)self) → float :

Returns the X coordinate

getY((V3D)self) → float :

Returns the Y coordinate

getZ((V3D)self) → float :

Returns the Z coordinate

norm((V3D)self) → float :

Calculates the length of the vector

norm2((V3D)self) → float :

Calculates the squared length of the vector

scalar_prod((V3D)self, (V3D)other) → float :

Computes the scalar product between this and another vector

zenith((V3D)self, (V3D)other) → float :

Returns the zenith between this vector and another