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

The Ray3 class definition is:<br />

public sealed class Ray3<br />

{<br />

public Ray3 (Ray3 input);<br />

public Ray3 (Point3 point, Direction3 direction);<br />

public Ray3 (Point3 point0, Point3 point1);<br />

public Direction3 Direction { get; }<br />

public bool IsDegenerate { get; }<br />

public Point3 Origin { get; }<br />

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

Direction3.Null);<br />

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

public override int GetHashCode ();<br />

public static bool IsNull (Ray3 obj);<br />

public static Ray3 Negate (Ray3 arg);<br />

public static Ray3 Plus (Ray3 arg);<br />

public overrice string ToString ();<br />

}<br />

public static Line3 operator – (Ray3 arg);<br />

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

public static Line3 operator + (Ray3 arg);<br />

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

The Ray2 and Ray3 classes provide the same constructors, properties, and methods.<br />

They vary only in the dimensions available. Ray2 objects are constructed from Point2<br />

and Direction2 objects and Ray3 objects are constructed from Point3 and<br />

Direction3 objects. The following sections detail the constructors, properties, and<br />

methods available using Ray3 for the examples.<br />

Each ray type has multiple constructors; the following examples use Ray3.<br />

Here is construction from the point of origin and the direction of the instance:<br />

Point3 origin = new Point3(0, 0, 0);<br />

Direction3 direction = new Direction3(10.0, 10.0, 0.0);<br />

Ray3 ray = new Ray3( origin, direction);<br />

4-186 <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!