Flutter Engine
 
Loading...
Searching...
No Matches
flutter::Point Class Reference

#include <geometry.h>

Public Member Functions

 Point ()=default
 
 Point (double x, double y)
 
 Point (const Point &point)=default
 
Pointoperator= (const Point &other)=default
 
double x () const
 
double y () const
 
bool operator== (const Point &other) const
 
 Point (int x, int y)
 
 ~Point ()=default
 
int x () const
 
int y () const
 
bool operator== (const Point &other) const
 

Detailed Description

Definition at line 15 of file geometry.h.

Constructor & Destructor Documentation

◆ Point() [1/4]

flutter::Point::Point ( )
default

◆ Point() [2/4]

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

Definition at line 18 of file geometry.h.

18: x_(x), y_(y) {}
double x() const
Definition geometry.h:22
double y() const
Definition geometry.h:23

◆ Point() [3/4]

flutter::Point::Point ( const Point point)
default

◆ Point() [4/4]

flutter::Point::Point ( int  x,
int  y 
)
inline

Definition at line 16 of file test_codec_extensions.h.

16: x_(x), y_(y) {}

◆ ~Point()

flutter::Point::~Point ( )
default

Member Function Documentation

◆ operator=()

Point & flutter::Point::operator= ( const Point other)
default

◆ operator==() [1/2]

bool flutter::Point::operator== ( const Point other) const
inline

Definition at line 25 of file geometry.h.

25 {
26 return x_ == other.x_ && y_ == other.y_;
27 }

◆ operator==() [2/2]

bool flutter::Point::operator== ( const Point other) const
inline

Definition at line 22 of file test_codec_extensions.h.

22 {
23 return x_ == other.x_ && y_ == other.y_;
24 }

◆ x() [1/2]

◆ x() [2/2]

int flutter::Point::x ( ) const
inline

Definition at line 19 of file test_codec_extensions.h.

19{ return x_; }

◆ y() [1/2]

◆ y() [2/2]

int flutter::Point::y ( ) const
inline

Definition at line 20 of file test_codec_extensions.h.

20{ return y_; }

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