Simple Graphics Library  0.9.5
SGL API
Public Member Functions | Public Attributes | List of all members
sgl::Point Struct Reference

#include <sgl.h>

Public Member Functions

 Point (double x, double y)
 
 Point ()
 

Public Attributes

double x
 
double y
 

Detailed Description

A Point object represents a location within a Window's viewport. The (x,y) values are given in viewport coordinates.

Constructor & Destructor Documentation

◆ Point() [1/2]

sgl::Point::Point ( double  x,
double  y 
)
inline

Initializes the points coordinates.

Parameters
xthe x coordinate of the new point's location.
ythe y coordinate of the new point's location.

◆ Point() [2/2]

sgl::Point::Point ( )
inline

This default constructor makes a point at the origin (0,0).

Member Data Documentation

◆ x

double sgl::Point::x

The x coordinate of the point's location.

◆ y

double sgl::Point::y

The y coordinate of the point's location.


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