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

Each point class has multiple constructors. The copy constructor is:<br />

Point3 pt3 = new Point3( input );<br />

Here is construction by Cartesian coordinates (X, Y, and Z respectively):<br />

double x = 10.0;<br />

double y = 20.0;<br />

double z = 30.0;<br />

Point3 pt3 = new Point3(x, y, z);<br />

The public properties for Point3 are:<br />

• X - This property gets the x-coordinate of the instance.<br />

• Y - This property gets the y-coordinate of the instance.<br />

• Z - This property gets the z-coordinate of the instance.<br />

Point3 pt = new Point3(3.0, 5.0, 7.0);<br />

double x = pt.X;<br />

// x = 3.0;<br />

double y = pt.Y;<br />

// y = 5.0;<br />

double z = pt.Z;<br />

// x = 3.0;<br />

Point2 and Point3 also expose the following static read only public fields:<br />

MaxValue – This method returns a Point3 with the maximum double value for its X, Y,<br />

and Z properties.<br />

Point3.MaxValue = (1.79769313486232E+308, 1.79769313486232E+308,<br />

1.79769313486232E+308)<br />

MinValue – This method returns a Point3 with the minimum double value for its X, Y,<br />

and Z properties.<br />

Point3.MinValue = (-1.79769313486232E+308, -1.79769313486232E+308, -<br />

1.79769313486232E+308)<br />

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

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

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

Saved successfully!

Ooh no, something went wrong!