RawSpeed
fast raw decoding library
Loading...
Searching...
No Matches
iPoint2D Class Referencefinal

#include "adt/Point.h"

Collaboration diagram for iPoint2D:
[legend]

Public Types

using value_type = int32_t
using area_type = uint64_t

Public Member Functions

constexpr iPoint2D ()=default
constexpr iPoint2D (value_type a, value_type b)
constexpr iPoint2D operator+ (const iPoint2D &rhs) const
constexpr iPoint2D operator- (const iPoint2D &rhs) const
iPoint2Doperator+= (const iPoint2D &rhs)
iPoint2Doperator-= (const iPoint2D &rhs)
constexpr bool RAWSPEED_READONLY operator== (const iPoint2D &rhs) const
constexpr bool RAWSPEED_READONLY operator> (const iPoint2D &rhs) const
constexpr bool RAWSPEED_READONLY operator< (const iPoint2D &rhs) const
constexpr bool RAWSPEED_READONLY operator>= (const iPoint2D &rhs) const
constexpr bool RAWSPEED_READONLY operator<= (const iPoint2D &rhs) const
bool RAWSPEED_READONLY hasPositiveArea () const
area_type RAWSPEED_READONLY area () const
constexpr bool RAWSPEED_READONLY isThisInside (const iPoint2D &rhs) const
constexpr iPoint2D getSmallest (const iPoint2D &rhs) const

Public Attributes

value_type x = 0
value_type y = 0

Detailed Description

Definition at line 35 of file Point.h.

Member Typedef Documentation

◆ area_type

Definition at line 38 of file Point.h.

◆ value_type

Definition at line 37 of file Point.h.

Constructor & Destructor Documentation

◆ iPoint2D() [1/2]

rawspeed::iPoint2D::iPoint2D ( )
constexprdefault

◆ iPoint2D() [2/2]

Definition at line 41 of file Point.h.

Member Function Documentation

◆ area()

area_type RAWSPEED_READONLY rawspeed::iPoint2D::area ( ) const
inlinenodiscard

Definition at line 81 of file Point.h.

◆ getSmallest()

iPoint2D rawspeed::iPoint2D::getSmallest ( const iPoint2D & rhs) const
inlinenodiscardconstexpr

Definition at line 95 of file Point.h.

◆ hasPositiveArea()

bool RAWSPEED_READONLY rawspeed::iPoint2D::hasPositiveArea ( ) const
inlinenodiscard

Definition at line 77 of file Point.h.

◆ isThisInside()

bool RAWSPEED_READONLY rawspeed::iPoint2D::isThisInside ( const iPoint2D & rhs) const
inlinenodiscardconstexpr

Definition at line 91 of file Point.h.

◆ operator+()

iPoint2D rawspeed::iPoint2D::operator+ ( const iPoint2D & rhs) const
inlineconstexpr

Definition at line 43 of file Point.h.

◆ operator+=()

iPoint2D & rawspeed::iPoint2D::operator+= ( const iPoint2D & rhs)
inline

Definition at line 50 of file Point.h.

◆ operator-()

iPoint2D rawspeed::iPoint2D::operator- ( const iPoint2D & rhs) const
inlineconstexpr

Definition at line 46 of file Point.h.

◆ operator-=()

iPoint2D & rawspeed::iPoint2D::operator-= ( const iPoint2D & rhs)
inline

Definition at line 54 of file Point.h.

◆ operator<()

bool RAWSPEED_READONLY rawspeed::iPoint2D::operator< ( const iPoint2D & rhs) const
inlineconstexpr

Definition at line 66 of file Point.h.

◆ operator<=()

bool RAWSPEED_READONLY rawspeed::iPoint2D::operator<= ( const iPoint2D & rhs) const
inlineconstexpr

Definition at line 73 of file Point.h.

◆ operator==()

bool RAWSPEED_READONLY rawspeed::iPoint2D::operator== ( const iPoint2D & rhs) const
inlineconstexpr

Definition at line 59 of file Point.h.

◆ operator>()

bool RAWSPEED_READONLY rawspeed::iPoint2D::operator> ( const iPoint2D & rhs) const
inlineconstexpr

Definition at line 63 of file Point.h.

◆ operator>=()

bool RAWSPEED_READONLY rawspeed::iPoint2D::operator>= ( const iPoint2D & rhs) const
inlineconstexpr

Definition at line 70 of file Point.h.

Member Data Documentation

◆ x

Definition at line 102 of file Point.h.

◆ y

Definition at line 103 of file Point.h.


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