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 Point2 version of this method does not require the Angle object phi. The output<br />

values are only the x and y parameters.<br />

bool isRadians = false;<br />

// Angle on XY plane in degrees<br />

Angle theta = new Angle(30, isRadians);<br />

// Angle of inclination in degrees<br />

Angle phi = new Angle(30, isRadians);<br />

// distance of point from origin<br />

double rho = 1000.0;<br />

// location X value<br />

double x;<br />

// location Y value<br />

double y;<br />

// location Z value<br />

double z;<br />

Point3.GetCartesianFromPolar(theta, phi, rho, out x, out y, out z);<br />

// x, y, z = 37.50 , 21.65, 25.00<br />

GetPolarFromCartesian – This method is the inverse of<br />

GetCartesianFromPolar. It computes a Cartesian point location given its definition in<br />

polar coordinates. The Point3 method is defined as:<br />

public static void GetPolarFromCartesian(<br />

double x,<br />

double y,<br />

double z,<br />

out Angle theta,<br />

out Angle phi,<br />

out double rho<br />

);<br />

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

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

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

Saved successfully!

Ooh no, something went wrong!