14#include "../../Utils/RGBColor.h"
15#include "../../Utils/Math/Vector2D.h"
Represents a pixel in a 2D grid with positional, color, and neighbor information.
void SetRightPixel(Pixel *pixel)
Sets the pixel to the right of this pixel.
bool HasRightPixel()
Checks if a pixel exists to the right of this pixel.
bool upExists
Indicates if a pixel exists above this pixel.
Pixel * GetLeftPixel()
Retrieves the pixel to the left of this pixel.
bool HasLeftPixel()
Checks if a pixel exists to the left of this pixel.
RGBColor * Color
Pointer to the RGB color of the pixel.
Pixel()
Default constructor.
Pixel * up
Pointer to the pixel above this pixel.
Pixel * left
Pointer to the pixel to the left of this pixel.
Pixel * down
Pointer to the pixel below this pixel.
bool rightExists
Indicates if a pixel exists to the right of this pixel.
void SetDownPixel(Pixel *pixel)
Sets the pixel below this pixel.
void SetUpPixel(Pixel *pixel)
Sets the pixel above this pixel.
bool downExists
Indicates if a pixel exists below this pixel.
Pixel * right
Pointer to the pixel to the right of this pixel.
const Vector2D GetPosition()
Retrieves the pixel's position.
bool HasUpPixel()
Checks if a pixel exists above this pixel.
const Vector2D * position
Pointer to the pixel's position in 2D space.
bool leftExists
Indicates if a pixel exists to the left of this pixel.
bool HasDownPixel()
Checks if a pixel exists below this pixel.
Pixel * GetRightPixel()
Retrieves the pixel to the right of this pixel.
Pixel * GetUpPixel()
Retrieves the pixel above this pixel.
Pixel * GetDownPixel()
Retrieves the pixel below this pixel.
bool sorted
Indicates whether the pixel has been processed in sorting algorithms.
void SetLeftPixel(Pixel *pixel)
Sets the pixel to the left of this pixel.
Represents an RGB color and provides methods for manipulation.
Represents a 2D vector (X, Y) and provides methods for vector arithmetic.