1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
10 /// @file    NBPTPlatform.cpp
11 /// @author  Gregor Laemmel
12 /// @date    Tue, 24 Aug 2017
13 /// @version $Id$
14 ///
15 // The representation of a pt platform
16 /****************************************************************************/
17 #include "NBPTPlatform.h"
NBPTPlatform(Position position,double d)18 NBPTPlatform::NBPTPlatform(Position position, double d): myPos(position), myLength(d) {
19 }
20 
21 
22 const Position&
getPos() const23 NBPTPlatform::getPos() const {
24     return myPos;
25 }
26 
27 
28 void
reshiftPosition(const double offsetX,const double offsetY)29 NBPTPlatform::reshiftPosition(const double offsetX, const double offsetY) {
30     myPos.add(offsetX, offsetY, 0);
31 }
32 
33 
34 double
getLength() const35 NBPTPlatform::getLength() const {
36     return myLength;
37 }
38