T_PurpleKingdomGames_Core_Point2D - PurpleKingdomGames/CoreLibs GitHub Wiki

Point2D Structure

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)

Syntax

C#

public struct Point2D

The Point2D type exposes the following members.

Constructors

 

Name Description
Public method Point2D Creates a new point in world space with the co-ordinates supplied
  Back to Top

Methods

 

Name Description
Public method Equals(Object) Determines if 2 objects are equal (Overrides ValueType.Equals(Object).)
Public method Equals(Point2D) Determines if 2 points are equal by comparing their X and Y values
Public method GetHashCode Identify an object in a hash-based collection (Overrides ValueType.GetHashCode().)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Public method ToString Returns the fully qualified type name of this instance. (Inherited from ValueType.)
  Back to Top

Operators

 

Name Description
Public operatorStatic member Addition Adds 2 points together by adding the X and Y positions
Public operatorStatic member Equality Determines if 2 points are equal by comparing their X and Y values
Public operatorStatic member Inequality etermines whether the two points are different from each other
  Back to Top

Fields

 

Name Description
Public field X The X position of this point
Public field Y The Y position of this point
  Back to Top

See Also

Reference

PurpleKingdomGames.Core Namespace

⚠️ **GitHub.com Fallback** ⚠️