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 />

Negate - This method returns a ray with the opposite direction.<br />

Plus - This method returns the same ray.<br />

Point3 originPt = new Point3(5, 5, 5);<br />

Direction3 rayDi = new Direction3(3, 3, 3);<br />

Ray3 r1 = new Ray3(originPt, rayDi);<br />

Ray3 r2 = Ray3.Negate(r1);<br />

// result is ray r1 with direction reversed.<br />

ToString - Gets the string representation of this ray. The string appears as "{origin}<br />

o--> {direction}".<br />

SphericalPoint Class<br />

The Slb.<strong>Ocean</strong>.Geometry namespace defines a sealed class SphericalPoint. This<br />

class represents a point in 3D space located using spherical polar coordinates that have<br />

two angles (theta, phi) and a distance (rho). We will use Point3 if a point representation<br />

using Cartesian coordinates is needed.<br />

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

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

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

Saved successfully!

Ooh no, something went wrong!