02.05.2014 Views

CoreandServices.book - Ocean - Schlumberger

CoreandServices.book - Ocean - Schlumberger

CoreandServices.book - Ocean - Schlumberger

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Geometry<br />

The Direction3 class is defined as:<br />

public sealed class Direction3<br />

{<br />

public static readonly Direction3 Null;<br />

public static readonly Direction3 Zero;<br />

public Direction3(double x, double y, double z);<br />

public Direction3(Direction3 input);<br />

public Direction3(Vector3 input);<br />

public static Direction3 operator - (Direction3 arg);<br />

public static bool operator != (Direction3 lhs, Direction3 rhs);<br />

public static Direction3 operator + (Direction3 arg);<br />

public static bool operator == (Direction3 lhs, Direction3 rhs);<br />

public static explicit operator Vector3 (Direction3 arg);<br />

public static implicit operator Direction3 (Vector3 arg);<br />

public Vector3 NormalizedVector { get; }<br />

public double X { get; }<br />

public double Y { get; }<br />

public double Z { get; }<br />

public override bool Equals (object obj);<br />

public override int GetHashCode ();<br />

public override string ToString ();<br />

public static bool IsNull (Direction3 obj);<br />

public static Direction3 Negate (Direction3 arg);<br />

public static Direction3 Plus (Direction3 arg);<br />

}<br />

The Direction2 and Direction3 classes provide the same constructors, properties,<br />

and methods. They vary only in the dimensions available. The Direction2 class is two<br />

dimensional and has only X and Y components. The Direction3 class is three<br />

dimensional and therefore has a Z component. The following sections detail the<br />

constructors, properties, and methods available.<br />

<strong>Schlumberger</strong> Private<br />

<strong>Ocean</strong> Services 4-151

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!