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 input arguments X, Y, and Z define the position of the point. The output argument<br />

“theta” is the Angle object that represents the angle in Cartesian space between the X<br />

axis and the line connecting the origin to the point projected onto the XY plane. The<br />

Angle object “phi” represents the angle between the XY plane and the line connecting<br />

the origin to the point. The angles returned are expressed in radians. The value “rho” is<br />

the length of the line connecting the 3D origin to the point.<br />

// location X value<br />

double x = 37.5;<br />

// location Y value<br />

double y = 21.65;<br />

// location Z value<br />

double z = 50.0;<br />

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

Angle theta ;<br />

// Angle of inclination in radians<br />

Angle phi ;<br />

// distance from origin to point<br />

double rho ;<br />

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

// theta = 0.5235, phi = 0.5235, rho = 50.0<br />

IsNull – This method returns a bool indicating if the input Point object has a null<br />

definition. A null is defined as one or more of its properties being NaN so that it cannot<br />

represent a real geometric position.<br />

Point3 pt = ...;<br />

if (Point3.IsNull(pt))<br />

//Point object is null.<br />

4-140 <strong>Ocean</strong> Application Development Framework 2008.1<br />

<strong>Schlumberger</strong> Private

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

Saved successfully!

Ooh no, something went wrong!