DGtal
2.2.0
Toggle main menu visibility
Loading...
Searching...
No Matches
ClosedIntegerHalfPlane.h
1
16
17
#pragma once
18
30
31
#if defined(ClosedIntegerHalfPlane_RECURSES)
32
#error Recursive header files inclusion detected in ClosedIntegerHalfPlane.h
33
#else
// defined(ClosedIntegerHalfPlane_RECURSES)
35
#define ClosedIntegerHalfPlane_RECURSES
36
37
#if !defined ClosedIntegerHalfPlane_h
39
#define ClosedIntegerHalfPlane_h
40
42
// Inclusions
43
#include <iostream>
44
#include "DGtal/base/Common.h"
45
#include "DGtal/kernel/CSpace.h"
47
48
namespace
DGtal
49
{
50
52
// template class ClosedIntegerHalfPlane
62
template
<
typename
TSpace>
63
struct
ClosedIntegerHalfPlane
64
{
65
typedef
ClosedIntegerHalfPlane<TSpace>
Self
;
66
BOOST_CONCEPT_ASSERT
((
concepts::CSpace< TSpace >
));
67
68
typedef
TSpace
Space
;
69
typedef
typename
Space::Integer
Integer
;
70
typedef
typename
Space::Point
Point
;
71
typedef
typename
Space::Vector
Vector
;
72
73
// ----------------------- public data ------------------------------
74
public
:
75
76
Vector
N
;
77
Integer
c
;
78
79
protected
:
80
// ----------------------- Standard services ------------------------------
81
public
:
85
~ClosedIntegerHalfPlane
() {};
89
ClosedIntegerHalfPlane
() =
default
;
90
97
ClosedIntegerHalfPlane
(
const
Vector
& aN,
const
Integer
& aC );
98
109
ClosedIntegerHalfPlane
(
const
Point
&
A
,
const
Point
&
B
,
110
const
Point
& inP,
IntegerComputer<Integer>
& ic );
111
116
bool
operator()
(
const
Point
& p )
const
;
117
122
bool
isOnBoundary
(
const
Point
& p )
const
;
123
127
Vector
tangent
()
const
;
128
132
void
negate
();
133
134
// ----------------------- Interface --------------------------------------
135
public
:
136
141
void
selfDisplay
( std::ostream & out )
const
;
142
147
bool
isValid
()
const
;
148
149
// ------------------------- Protected Data ------------------------------
150
private
:
151
// ------------------------- Private Data --------------------------------
152
private
:
153
154
155
};
// end of class ClosedIntegerHalfPlane
156
157
164
template
<
typename
TSpace>
165
std::ostream&
166
operator<<
( std::ostream & out,
const
ClosedIntegerHalfPlane<TSpace>
&
object
);
167
168
}
// namespace DGtal
169
170
172
// Includes inline functions.
173
#include "DGtal/arithmetic/ClosedIntegerHalfPlane.ih"
174
175
// //
177
178
#endif
// !defined ClosedIntegerHalfPlane_h
179
180
#undef ClosedIntegerHalfPlane_RECURSES
181
#endif
// else defined(ClosedIntegerHalfPlane_RECURSES)
B
Definition
testPartialTemplateSpecialization.cpp:63
DGtal::IntegerComputer
Aim: This class gathers several types and methods to make computation with integers.
Definition
IntegerComputer.h:83
DGtal::SpaceND< 3, Integer >::Integer
Integer Integer
Definition
SpaceND.h:102
DGtal::SpaceND< 3, Integer >::Point
PointVector< dim, Integer > Point
Definition
SpaceND.h:110
DGtal::SpaceND< 3, Integer >::Vector
PointVector< dim, Integer > Vector
Definition
SpaceND.h:113
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
Definition
ClosedIntegerHalfPlane.h:49
DGtal::operator<<
std::ostream & operator<<(std::ostream &out, const ClosedIntegerHalfPlane< TSpace > &object)
A
Definition
testCountedConstPtrOrConstPtr.cpp:43
DGtal::ClosedIntegerHalfPlane
Aim: A half-space specified by a vector N and a constant c. The half-space is the set .
Definition
ClosedIntegerHalfPlane.h:64
DGtal::ClosedIntegerHalfPlane::negate
void negate()
DGtal::ClosedIntegerHalfPlane::Self
ClosedIntegerHalfPlane< TSpace > Self
Definition
ClosedIntegerHalfPlane.h:65
DGtal::ClosedIntegerHalfPlane::tangent
Vector tangent() const
DGtal::ClosedIntegerHalfPlane::isOnBoundary
bool isOnBoundary(const Point &p) const
DGtal::ClosedIntegerHalfPlane< Space >::N
Vector N
Definition
ClosedIntegerHalfPlane.h:76
DGtal::ClosedIntegerHalfPlane::ClosedIntegerHalfPlane
ClosedIntegerHalfPlane()=default
DGtal::ClosedIntegerHalfPlane::Integer
Space::Integer Integer
Definition
ClosedIntegerHalfPlane.h:69
DGtal::ClosedIntegerHalfPlane::operator()
bool operator()(const Point &p) const
DGtal::ClosedIntegerHalfPlane::isValid
bool isValid() const
DGtal::ClosedIntegerHalfPlane::~ClosedIntegerHalfPlane
~ClosedIntegerHalfPlane()
Definition
ClosedIntegerHalfPlane.h:85
DGtal::ClosedIntegerHalfPlane::Space
TSpace Space
Definition
ClosedIntegerHalfPlane.h:68
DGtal::ClosedIntegerHalfPlane::ClosedIntegerHalfPlane
ClosedIntegerHalfPlane(const Vector &aN, const Integer &aC)
DGtal::ClosedIntegerHalfPlane::Vector
Space::Vector Vector
Definition
ClosedIntegerHalfPlane.h:71
DGtal::ClosedIntegerHalfPlane::ClosedIntegerHalfPlane
ClosedIntegerHalfPlane(const Point &A, const Point &B, const Point &inP, IntegerComputer< Integer > &ic)
DGtal::ClosedIntegerHalfPlane::Point
Space::Point Point
Definition
ClosedIntegerHalfPlane.h:70
DGtal::ClosedIntegerHalfPlane< Space >::c
Integer c
Definition
ClosedIntegerHalfPlane.h:77
DGtal::ClosedIntegerHalfPlane::selfDisplay
void selfDisplay(std::ostream &out) const
DGtal::ClosedIntegerHalfPlane::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((concepts::CSpace< TSpace >))
DGtal::concepts::CSpace
Aim: Defines the concept describing a digital space, ie a cartesian product of integer lines.
Definition
CSpace.h:106
src
DGtal
arithmetic
ClosedIntegerHalfPlane.h
Generated on
for DGtal by
1.18.0