1 /* 2 * Copyright (C) 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic 3 * 4 * This program is free software: you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation, either version 3 of the License, or 7 * (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program. If not, see <http://www.gnu.org/licenses/>. 16 */ 17 package cz.cuni.amis.pogamut.ut2004.agent.navigation.navmesh.pathfollowing; 18 19 import cz.cuni.amis.pogamut.base3d.worldview.object.Location; 20 21 /** 22 * Holds information about a point on the border of the mesh and about the mesh 23 * edge it lies on. 24 * 25 * @author Bogo 26 */ 27 public class BorderPoint { 28 29 private Location point; 30 private Location direction; 31 32 /** 33 * Constructs border point. 34 * 35 * @param point Point on the border of mesh 36 * @param direction Direction of the edge of mesh 37 */ 38 public BorderPoint(Location point, Location direction) { 39 this.point = point; 40 this.direction = direction; 41 } 42 43 /** 44 * Gets location of border point. 45 * 46 * @return 47 */ 48 public Location getPoint() { 49 return point; 50 } 51 52 /** 53 * Gets direction of the border edge. 54 * 55 * @return 56 */ 57 public Location getDirection() { 58 return direction; 59 } 60 61 /** 62 * Sets location of the border point. 63 * 64 * @param point 65 */ 66 public void setPoint(Location point) { 67 this.point = point; 68 } 69 70 /** 71 * Sets direction of the border edge. 72 * 73 * @param direction 74 */ 75 public void setDirection(Location direction) { 76 this.direction = direction; 77 } 78 79 }