NovaSVG 0.10.0
A header-only SVG library
Loading...
Searching...
No Matches
novasvg::Point Class Reference

#include <canvas.h>

Public Member Functions

constexpr Point ()=default
 
constexpr Point (const point_t &point)
 
constexpr Point (float x, float y)
 
constexpr void move (float dx, float dy)
 
constexpr void move (float d)
 
constexpr void move (const Point &p)
 
constexpr void scale (float sx, float sy)
 
constexpr void scale (float s)
 
constexpr float dot (const Point &p) const
 

Public Attributes

float x {0}
 
float y {0}
 

Detailed Description

Definition at line 61 of file canvas.h.

Constructor & Destructor Documentation

◆ Point() [1/3]

constexpr novasvg::Point::Point ( )
constexprdefault

◆ Point() [2/3]

constexpr novasvg::Point::Point ( const point_t &  point)
inlineconstexpr

Definition at line 64 of file canvas.h.

◆ Point() [3/3]

constexpr novasvg::Point::Point ( float  x,
float  y 
)
inlineconstexpr

Definition at line 65 of file canvas.h.

Member Function Documentation

◆ dot()

constexpr float novasvg::Point::dot ( const Point &  p) const
inlineconstexpr

Definition at line 74 of file canvas.h.

References x, and y.

Referenced by novasvg::operator*().

◆ move() [1/3]

constexpr void novasvg::Point::move ( const Point &  p)
inlineconstexpr

Definition at line 69 of file canvas.h.

References move(), x, and y.

Referenced by move().

◆ move() [2/3]

constexpr void novasvg::Point::move ( float  d)
inlineconstexpr

Definition at line 68 of file canvas.h.

References move().

Referenced by move().

◆ move() [3/3]

constexpr void novasvg::Point::move ( float  dx,
float  dy 
)
inlineconstexpr

Definition at line 67 of file canvas.h.

References x, and y.

Referenced by novasvg::operator+=(), and novasvg::operator-=().

◆ scale() [1/2]

constexpr void novasvg::Point::scale ( float  s)
inlineconstexpr

Definition at line 72 of file canvas.h.

References scale().

Referenced by scale().

◆ scale() [2/2]

constexpr void novasvg::Point::scale ( float  sx,
float  sy 
)
inlineconstexpr

Definition at line 71 of file canvas.h.

References x, and y.

Member Data Documentation

◆ x

◆ y


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