C# Class TerrainPainter.Point

Datei anzeigen Open project: Stumpstump/RoverGame

Public Properties

Property Type Description
x int

Public Methods

Method Description
Equals ( object obj ) : bool

GetHashCode ( ) : int

Max ( Point a, Point b ) : Point

Get the max of both Example: a = (1, 6) b = (4, 5) return (4, 6)

Min ( Point a, Point b ) : Point

Get the min of both Example: a = (1, 6) b = (4, 5) return (1, 5)

Point ( int x, int y ) : System

Constructor

Set ( int x, int y ) : void

Constructor

Swap ( ) : Point
ToString ( ) : string

Converts to readable string

operator ( ) : Point
operator ( ) : bool

Method Details

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

Max() public static method

Get the max of both Example: a = (1, 6) b = (4, 5) return (4, 6)
public static Max ( Point a, Point b ) : Point
a Point
b Point
return Point

Min() public static method

Get the min of both Example: a = (1, 6) b = (4, 5) return (1, 5)
public static Min ( Point a, Point b ) : Point
a Point
b Point
return Point

Point() public method

Constructor
public Point ( int x, int y ) : System
x int
y int
return System

Set() public method

Constructor
public Set ( int x, int y ) : void
x int
y int
return void

Swap() public method

public Swap ( ) : Point
return Point

ToString() public method

Converts to readable string
public ToString ( ) : string
return string

operator() public static method

public static operator ( ) : Point
return Point

operator() public static method

public static operator ( ) : bool
return bool

Property Details

x public_oe property

public int x
return int