T_PurpleKingdomGames_Core_Point2D - PurpleKingdomGames/CoreLibs GitHub Wiki
A single 2-dimensional point in world space
Namespace: PurpleKingdomGames.Core
Assembly: PurpleKingdomGamesCore (in PurpleKingdomGamesCore.dll) Version: 1.0.0.0 (1.0.0.0)
C#
public struct Point2D
The Point2D type exposes the following members.
Name | Description | |
---|---|---|
![]() |
Point2D | Creates a new point in world space with the co-ordinates supplied |
Name | Description | |
---|---|---|
![]() |
Equals(Object) | Determines if 2 objects are equal (Overrides ValueType.Equals(Object).) |
![]() |
Equals(Point2D) | Determines if 2 points are equal by comparing their X and Y values |
![]() |
GetHashCode | Identify an object in a hash-based collection (Overrides ValueType.GetHashCode().) |
![]() |
GetType | Gets the type of the current instance. (Inherited from Object.) |
![]() |
ToString | Returns the fully qualified type name of this instance. (Inherited from ValueType.) |
Name | Description | |
---|---|---|
![]() ![]() |
Addition | Adds 2 points together by adding the X and Y positions |
![]() ![]() |
Equality | Determines if 2 points are equal by comparing their X and Y values |
![]() ![]() |
Inequality | etermines whether the two points are different from each other |
Name | Description | |
---|---|---|
![]() |
X | The X position of this point |
![]() |
Y | The Y position of this point |