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

GetCartesianFromPolar - This method computes the Cartesian form of the given<br />

polar coordinates.<br />

SphericalPoint sp1 = new SphericalPoint(20, 40, 20);<br />

double x = 0;<br />

double y = 0;<br />

double z = 0;<br />

SphericalPoint.GetCartesianFromPolar(sp1.Theta, sp1.Phi, sp1.Rho,<br />

out x, out y, out z);<br />

//output x = -5.4, y = -12.1, z = 14.9<br />

GetPolarFromCartesian - This method computes the polar form of the given<br />

Cartesian coordinates.<br />

Angle theta = sp.Phi;<br />

Angle phi = sp.Theta;<br />

double rho = sp.Rho;<br />

SphericalPoint.GetCartesianFromPolar(x,y,z,out theta, out phi, out<br />

rho);<br />

//output theta = -1.99, phi = 0.84, rho = 20.0<br />

IsNull - This method determines if the given instance has a Null definition.<br />

SphericalPoint sp8 = SphericalPoint.Null;<br />

bool result = SphericalPoint.IsNull(sp8);<br />

//result is true<br />

ToPoint3- This method returns the cartesian coordinates of the spherical point.<br />

SphericalPoint sp9 = new SphericalPoint(20, 30, 20);<br />

Point3 pt = sp9.ToPoint3( );<br />

// result is the Point3 location of the spherical point.<br />

ToString - This method gets the string representation of this segment. This returns<br />

string representation of this instance that is formed as a delimited list of values.<br />

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

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

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

Saved successfully!

Ooh no, something went wrong!