forked from jacobwjs/MC-Boost
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdetector.cpp
41 lines (31 loc) · 1010 Bytes
/
detector.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
// detector.cpp
// Xcode
//
// Created by jacob on 7/18/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#include "detector.h"
Detector::Detector(const Vector3d ¢erPoint)
{
center.location.x = centerPoint.location.x;
center.location.y = centerPoint.location.y;
center.location.z = centerPoint.location.z;
// initialize the vector normal to the plane to have
// direction since it is only used to know the direction
// and not location that the plane faces.
normalVector.withDirection();
}
Detector::Detector(const boost::shared_ptr<Vector3d> centerPoint)
{
center.location.x = centerPoint->location.x;
center.location.y = centerPoint->location.y;
center.location.z = centerPoint->location.z;
// initialize the vector normal to the plane to have
// direction since it is only used to know the direction
// and not location that the plane faces.
normalVector.withDirection();
}
Detector::~Detector()
{
}