02.05.2014 Views

CoreandServices.book - Ocean - Schlumberger

CoreandServices.book - Ocean - Schlumberger

CoreandServices.book - Ocean - Schlumberger

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Geometry<br />

IsNull - This method determines if the input Vector has a Null definition and returns<br />

true if it does. A null vector is a vector that has one or more properties whose value is<br />

NaN so it cannot represent a geometric entity.<br />

Vector3 vt1 = new Vector3(10, 20, 30);<br />

bool result = Vector3.IsNull(vt1);<br />

//result is false<br />

vt3 = Vector3.Null;<br />

result = Vector3.IsNull(vt3);<br />

//result is true<br />

ToString - This method gets a string representation of this instance.<br />

Vector3 vt1 = new Vector3(10, 20, 30);<br />

string str = vt1.ToString();<br />

// str = (10, 20, 30)<br />

Direction2 and Direction3 Classes<br />

The Slb.<strong>Ocean</strong>.Geometry namespace defines two sealed direction classes called<br />

Direction2 and Direction3 in the Euclidean 2D and 3D space respectively. Direction<br />

is lengthless vector, i.e. a vector whose length is insignificant.<br />

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

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

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

Saved successfully!

Ooh no, something went wrong!