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.

ToString - This method gets a string representation of the instance of the Point<br />

object.<br />

Geometry<br />

Point3 pt = new Point3(10, 20, 30);<br />

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

// str is 10, 20, 30<br />

Vector2 and Vector3 Classes<br />

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

Vector2 and Vector3 in the 2D and 3D space respectively. These classes define a<br />

vector which geometrically is the difference of two points (p1, p2) and denotes the<br />

direction and the distance from p1 to p2. Implicitly the location of point p1 is the origin, so<br />

the vector is defined by X, Y, and possibly Z values for the point p2.<br />

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

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

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

Saved successfully!

Ooh no, something went wrong!