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

Equals - This method compares this plane with another object for equality. Returns true<br />

if this instance is equal to the other object.<br />

Plane3 pl7 = +pl1;<br />

bool result = pl1.Equals(pl7);<br />

//result is true;<br />

GetHashCode - Ths method gets the hash code for this instance.<br />

IsNull - This method determines if the given instance has a Null definition. Returns<br />

true if the instance represents Null value.<br />

Plane3 pl8 = Plane3.Null;<br />

//create a null plane<br />

bool result = Plane3.IsNull(pl8);<br />

//result is true<br />

ToString - This method gets a string representation of the equation defining this<br />

plane. This returns a string formatted as: ax + by + cz + d = 0 where a, b, c, and d are<br />

constants.<br />

Polyline2 and Polyline3 Classes<br />

IPolyline2 and IPolyline3 Interfaces<br />

The Slb.<strong>Ocean</strong>.Geometry namespace defines two interfaces, IPolyline2 and<br />

IPolyline3, which extend IEnumerable and IPoint3Set respectively.<br />

These interfaces are created for representing data in Euclidean 2D and 3D space<br />

respectively.<br />

public interface IPolyline2 : IEnumerable;<br />

public interface IPolyline3 : IPoint3Set;<br />

They define one public property:<br />

IsClosed - This property determines if the polyline is closed or not.<br />

Polyline2 and Polyline 3 Classes<br />

The Slb.<strong>Ocean</strong>.Geometry namespace defines two sealed polyline classes called<br />

Polyline2 and Polyline3, which extend the IPolyline2 and IPolyline3<br />

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

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

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

Saved successfully!

Ooh no, something went wrong!