Reading Buses API V3.0.0
A C#, .net Standard Library for the Reading Buses Open Data API (https://reading-opendata.r2p.com/), available to use in your C# console, WPF, UWP or Win Form Applications.
ReadingBusesAPI.Common.Point Struct Reference

Stores an X and Y Position simply. More...

Inheritance diagram for ReadingBusesAPI.Common.Point:

Public Member Functions

 Point (double x, double y)
 Default constructor More...
 
override string ToString ()
 Converts point to string representation. More...
 
override int GetHashCode ()
 Generates a unique number for each Point Object. More...
 
override bool Equals (object obj)
 Checks if two point objects are the same or not. More...
 
bool Equals (Point other)
 Implements logic for checking if two objects are equal. More...
 

Static Public Member Functions

static bool operator== (Point point1, Point point2)
 Checks if two objects are the same. More...
 
static bool operator!= (Point point1, Point point2)
 Checks if two objects are the not the same. More...
 

Properties

double X [get]
 The X value. More...
 
double Y [get]
 The Y Value. More...
 

Detailed Description

Stores an X and Y Position simply.

Constructor & Destructor Documentation

◆ Point()

ReadingBusesAPI.Common.Point.Point ( double  x,
double  y 
)

Default constructor

Parameters
xX value of Point.
yY value of Point.

Member Function Documentation

◆ Equals() [1/2]

override bool ReadingBusesAPI.Common.Point.Equals ( object  obj)

Checks if two point objects are the same or not.

Parameters
objAnother object to compare against this object.
Returns
Is it the same object or not.

◆ Equals() [2/2]

bool ReadingBusesAPI.Common.Point.Equals ( Point  other)

Implements logic for checking if two objects are equal.

Parameters
otherThe other object to check if equal.
Returns
True if equals else false.

◆ GetHashCode()

override int ReadingBusesAPI.Common.Point.GetHashCode ( )

Generates a unique number for each Point Object.

Returns
Int value of object.

◆ operator!=()

static bool ReadingBusesAPI.Common.Point.operator!= ( Point  point1,
Point  point2 
)
static

Checks if two objects are the not the same.

Parameters
point1First Point Object.
point2Second Point Object.
Returns
True if they are not the same.

◆ operator==()

static bool ReadingBusesAPI.Common.Point.operator== ( Point  point1,
Point  point2 
)
static

Checks if two objects are the same.

Parameters
point1First Point Object.
point2Second Point Object.
Returns
True if equal else false

◆ ToString()

override string ReadingBusesAPI.Common.Point.ToString ( )

Converts point to string representation.

Returns
Point as a string.

Property Documentation

◆ X

double ReadingBusesAPI.Common.Point.X
get

The X value.

◆ Y

double ReadingBusesAPI.Common.Point.Y
get

The Y Value.


The documentation for this struct was generated from the following file: