Wiki

Clone wiki

RogueSharp / RogueSharp / Point / README

Point Class

A class that defines a point in 2D space

Inheritance Hierarchy

SystemObject
RogueSharpPoint

Namespace: RogueSharp
Assembly:

Syntax

public class Point : IEquatable<Point>

The Point type exposes the following members.

Constructors

Name Description
Point Initializes a new instance of Point
Point(Int32, Int32) Initializes a new instance of Point

Properties

Name Description
X Specifies the x-coordinate of the Point
Y Specifies the y-coordinate of the Point
Zero Returns the point (0,0)

Methods

Name Description
Equals(Object) Determines whether two Point instances are equal (Overrides ObjectEquals(Object).)
Equals(Point) Determines whether two Point instances are equal
Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
GetHashCode Gets the hash code for this object which can help for quick checks of equality or when inserting this Point into a hash-based collection such as a Dictionary or Hashtable (Overrides ObjectGetHashCode.)
GetType Gets the Type of the current instance. (Inherited from Object.)
MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
ToString Returns a string that represents the current Point (Overrides ObjectToString.)

Operators

Name Description
Equality Determines whether two Point instances are equal
Inequality Determines whether two Point instances are not equal

See Also

Reference

RogueSharp Namespace

[13]: 2014-2016 Faron Bracy

Updated