pixled-lib  1.0
Public Member Functions | Public Attributes | List of all members
pixled::point Struct Reference

#include <geometry.h>

Public Member Functions

 point ()
 
 point (coordinate x, coordinate y)
 

Public Attributes

coordinate x
 
coordinate y
 

Detailed Description

A basic 2D point.

Examples
pixled/animation/blink.cpp, pixled/animation/blooming.cpp, pixled/animation/radial_unit_wave.cpp, pixled/animation/sequence.cpp, and pixled/function/function.cpp.

Constructor & Destructor Documentation

◆ point() [1/2]

pixled::point::point ( )
inline

point default constructor.

The point is initialized at (0, 0).

◆ point() [2/2]

pixled::point::point ( coordinate  x,
coordinate  y 
)
inline

point constructor.

Parameters
xx coordinate
yy coordinate

Member Data Documentation

◆ x

coordinate pixled::point::x

x coordinate.

Examples
pixled/function/function.cpp.

◆ y

coordinate pixled::point::y

y coordinate.


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