AgateLib.Geometry.PointF Struct Reference

Replacement for System.Drawing.PointF structure. More...

List of all members.

Public Member Functions

 PointF (float x, float y)
 Constructs a PointF object.
 PointF (PointF pt)
 Constructs a PointF object.
 PointF (SizeF size)
 Constructs a PointF object.
 PointF (System.Drawing.PointF pt)
 Constructs a PointF object.
override string ToString ()
 Creates a string representing this object.
override int GetHashCode ()
 Gets a hash code.
override bool Equals (object obj)
 Equality test.
bool Equals (PointF obj)
 Equality test.

Static Public Member Functions

static bool operator== (PointF a, PointF b)
 Equality comparison test.
static bool operator!= (PointF a, PointF b)
 Inequality comparison test.
static operator Point (PointF a)
 Explicitly converts a point to a pointf structure.
static PointF Add (PointF pt, SizeF size)
 Adds the specified SizeF structure to the specified PointF structure and returns the result as a new PointF structure.

Public Attributes

float x
float y

Static Public Attributes

static readonly PointF Empty = new PointF(0, 0)
 Empty PointF.

Properties

float X [get, set]
 Gets or sets the X value.
float Y [get, set]
 Gets or sets the Y value.
bool IsEmpty [get]
 Returns true if X and Y are zero.


Detailed Description

Replacement for System.Drawing.PointF structure.


Constructor & Destructor Documentation

AgateLib.Geometry.PointF.PointF ( float  x,
float  y 
)

Constructs a PointF object.

Parameters:
x 
y 

AgateLib.Geometry.PointF.PointF ( PointF  pt  ) 

Constructs a PointF object.

Parameters:
pt 

AgateLib.Geometry.PointF.PointF ( SizeF  size  ) 

Constructs a PointF object.

Parameters:
size 

AgateLib.Geometry.PointF.PointF ( System.Drawing.PointF  pt  ) 

Constructs a PointF object.

[Experimental - The API is likely to change in the future.]

Parameters:
pt 


Member Function Documentation

static PointF AgateLib.Geometry.PointF.Add ( PointF  pt,
SizeF  size 
) [static]

Adds the specified SizeF structure to the specified PointF structure and returns the result as a new PointF structure.

Parameters:
pt 
size 
Returns:

bool AgateLib.Geometry.PointF.Equals ( PointF  obj  ) 

Equality test.

Parameters:
obj 
Returns:

override bool AgateLib.Geometry.PointF.Equals ( object  obj  ) 

Equality test.

Parameters:
obj 
Returns:

override int AgateLib.Geometry.PointF.GetHashCode (  ) 

Gets a hash code.

Returns:

static AgateLib.Geometry.PointF.operator Point ( PointF  a  )  [explicit, static]

Explicitly converts a point to a pointf structure.

Parameters:
a 
Returns:

static bool AgateLib.Geometry.PointF.operator!= ( PointF  a,
PointF  b 
) [static]

Inequality comparison test.

Parameters:
a 
b 
Returns:

static bool AgateLib.Geometry.PointF.operator== ( PointF  a,
PointF  b 
) [static]

Equality comparison test.

Parameters:
a 
b 
Returns:

override string AgateLib.Geometry.PointF.ToString (  ) 

Creates a string representing this object.

Returns:


Member Data Documentation

readonly PointF AgateLib.Geometry.PointF.Empty = new PointF(0, 0) [static]

Empty PointF.


Property Documentation

bool AgateLib.Geometry.PointF.IsEmpty [get]

Returns true if X and Y are zero.

float AgateLib.Geometry.PointF.X [get, set]

Gets or sets the X value.

float AgateLib.Geometry.PointF.Y [get, set]

Gets or sets the Y value.


The documentation for this struct was generated from the following file:
AgateLib
Awesome Game and Tool Engine Library
SourceForge.net Logo