lines-are-beautiful  0.0
A C++ file API for the reMarkable e-ink tablet
Classes | Enumerations | Functions | Variables
Point.hpp File Reference
#include <cmath>

Go to the source code of this file.

Classes

struct  rmlab::Point
 

Enumerations

enum  rmlab::ranges::Coords { rmlab::ranges::minX = 0u, rmlab::ranges::maxX = 1404u, rmlab::ranges::minY = 0u, rmlab::ranges::maxY = 1872u }
 

Functions

Point rmlab::make_point (float x, float y, float pressure, float rotX, float rotY)
 

Variables

constexpr float rmlab::ranges::minP = 0.0
 
constexpr float rmlab::ranges::maxP = 1.0
 
constexpr float rmlab::ranges::minRot = -M_PI / 2.0
 
constexpr float rmlab::ranges::maxRot = M_PI / 2.0
 

Detailed Description

Definition of points and of the magic numbers that encode their attributes.

Enumeration Type Documentation

◆ Coords

Rectangle in which the points are located.

Enumerator
minX 

Minimum value of the X coordinate, or X coordinate of the left-side of the bounding rectangle.

maxX 

Maximum value of the X coordinate, or X coordinate of the right-side of the bounding rectangle.

minY 

Minimum value of the Y coordinate, or Y coordinate of the upper-side of the bounding rectangle.

maxY 

Maximum value of the Y coordinate, or Y coordinate of the bottom-side of the bounding rectangle.

Variable Documentation

◆ maxP

constexpr float rmlab::ranges::maxP = 1.0

Maximum pressure value.

◆ maxRot

constexpr float rmlab::ranges::maxRot = M_PI / 2.0

Maximum rotation value of the pen, in radians.

◆ minP

constexpr float rmlab::ranges::minP = 0.0

Minimum pressure value.

◆ minRot

constexpr float rmlab::ranges::minRot = -M_PI / 2.0

Minimum rotation value of the pen, in radians.