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.

Geometry<br />

Theta - This property gets the angle between the X axis and the line, which is the<br />

projection onto the XY plane of the line of shortest distance connecting the origin of 3D<br />

space with the point.<br />

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

Angle ang = sp.Theta;<br />

//ang is 1.15<br />

The SphericalPoint defines the public fields:<br />

Null – This method defines an instance that has coordinates that are all undefined.<br />

SphericalPoint sp1 = SphericalPoint.Null;<br />

//sp1 = {(NaN,NaN,NaN)}<br />

Zero - The instance at the origin of the space containing all instances of this type.<br />

public static readonly SphericalPoint Zero = new<br />

SphericalPoint(0.0,0.0,0);<br />

SphericalPoint sp2 = SphericalPoint.Zero;<br />

//sp2 = {(0,0,0)}<br />

SphericalPoint defines the following public operators:<br />

== Operator - This operation compares two SphericalPoint instances for equality.<br />

Returns true if the instances are equal.<br />

The corresponding coordinates of each instance are compared to determine equality. Note<br />

that comparing SphericalPoint.Null to any other instance will return false. This is<br />

to maintain consistency with the behavior of floating point NaN comparison.<br />

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

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

bool result = (sp1 == sp2);<br />

//result is true<br />

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

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

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

Saved successfully!

Ooh no, something went wrong!