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 Box3 class is defined as:<br />

public sealed class Box3<br />

{<br />

public Box3 (Point3 firstCorner, Point3 secondCorner);<br />

public bool IsDegenerate { get; }<br />

public Point3 Max { get; }<br />

public Point3 Min { get; }<br />

public static readonly Box3 Null = new Box3(Point3.Null,<br />

Point3.Null);<br />

public override bool Equals (object obj);<br />

public override int GetHashCode ();<br />

public bool IsInside (Point3 point);<br />

public override string ToString ();<br />

}<br />

public static bool operator != (Box3 lhs, Box3 rhs);<br />

public static bool operator == (Box3 lhs, Box3 rhs);<br />

The Box2 and Box3 classes provide the same constructors, properties, and methods.<br />

They vary only in the dimensions available. The following sections detail the constructors,<br />

properties, and methods available.<br />

Each Box type has one constructor. Using Box3 as the example the constructor is<br />

described below:<br />

Point3 firstCorner = new Point3(10, 10, 10);<br />

Point3 secondCorner = new Point3(50, 50, 50);<br />

Box3 box = new Box3(firstCorner, secondCorner);<br />

//Creates a box from 10, 10, 10 to 50, 50, 50<br />

FirstCorner is the first of the two corners that define the box, and secondCorner is<br />

the second of the two corners that define the box.<br />

The public properties for a Box3 class are:<br />

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

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

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

Saved successfully!

Ooh no, something went wrong!