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 definition of the Vector2 class is:<br />

public sealed class Vector2<br />

{<br />

public Vector2 (double x, double y);<br />

public Vector2 (Vector2 input) ;<br />

public double Norm { get; }<br />

public double X { get; }<br />

public double Y { get; }<br />

public static readonly Vector2 MaxValue = new Vector2(Xy.MaxValue);<br />

public static readonly Vector2 MinValue = new Vector2(Xy.MinValue);<br />

public static readonly Vector2 Null = new Vector2 (Xy.Null);<br />

public static readonly Vector2 Zero = new Vector2 (Xy.Zero);<br />

public static double Dot (Vector2 lhs, Vector2 rhs);<br />

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

public override int GetHashCode ();<br />

public static Vector2 GetNormalized (Vector2 v);<br />

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

public override string ToString ();<br />

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

public static Vector2 operator – (Vector2 lhs, Vector2 rhs);<br />

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

public static Vector2 operator * (Vector2 lhs, double rhs);<br />

public static Vector2 operator * (double lhs, Vector2 rhs);<br />

public static Vector2 operator / (Vector2 lhs, double rhs);<br />

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

public static Vector2 operator + (Vector2 lhs, Vector2 rhs);<br />

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

public static implicit [ ] operator double (Vector2 arg);<br />

public static explicit operator Vector2 (double[ ] arg);<br />

}<br />

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