AI Watch A1
Multi-person 3D skeleton detection using Intel RealSense and OpenPose with Kafka support.
Point.cpp
Go to the documentation of this file.
1//
2// Point.cpp
3// AI Watch A1
4//
5// Created by Denny Caruso on 20/07/22.
6//
7
8// License: Apache 2.0. See LICENSE file in root directory.
9// Copyright(c) 2022. All Rights Reserved.
10
11#include "Point.hpp"
12
13
14
15void Point::setX (float x) {
16 this->x = x;
17}
18
19void Point::setY (float y) {
20 this->y = y;
21}
22
24 if (getDecorated() != nullptr) delete getDecorated();
25}
26
27
28
29float Point::getX (void) {
30 return this->x;
31}
32
33float Point::getY (void) {
34 return this->y;
35}
36
37const Point * Point::getDecorated (void) {
38 return this->decorated;
39}
Point class is used for point creations and manipulations.
Definition: Point.hpp:21
const Point * decorated
A pointer to Point.
Definition: Point.hpp:34
float x
Point's x coordinate.
Definition: Point.hpp:26
void setY(float y)
Set the Point's y coordinate value.
Definition: Point.cpp:19
float getY(void)
Get the Point's y coordinate value.
Definition: Point.cpp:33
float y
Point's y coordinate.
Definition: Point.hpp:30
~Point(void)
Destroy the Point object.
Definition: Point.cpp:23
float getX(void)
Get the Point's x coordinate value.
Definition: Point.cpp:29
void setX(float x)
Set the Point's x coordinate value.
Definition: Point.cpp:15
const Point * getDecorated(void)
Get the pointer to Point used to check if that's a "decorated" Point.
Definition: Point.cpp:37