public final class OTSGeometryUtil extends Object
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
$LastChangedDate: 2015-07-16 10:20:53 +0200 (Thu, 16 Jul 2015) $, @version $Revision: 1124 $, by $Author: pknoppers $,
initial version Jul 22, 2015
Modifier and Type | Method and Description |
---|---|
static String |
printCoordinate(String prefix,
OTSPoint3D point)
Print one OTSPoint3D on the console.
|
static String |
printCoordinates(String prefix,
OTSLine3D line,
String separator)
Print an array of coordinates on the console.
|
static String |
printCoordinates(String prefix,
OTSPoint3D[] points,
int fromIndex,
int toIndex,
String separator)
Print part of an array of coordinates on the console.
|
static String |
printCoordinates(String prefix,
OTSPoint3D[] coordinates,
String separator)
Print an array of coordinates on the console.
|
public static String printCoordinate(String prefix, OTSPoint3D point)
prefix
- String; text to put before the outputpoint
- OTSPoint3D; the coordinate to printpublic static String printCoordinates(String prefix, OTSPoint3D[] coordinates, String separator)
prefix
- String; text to put before the coordinatescoordinates
- OTSPoint3D[]; the points to printseparator
- String; prepended to each coordinatepublic static String printCoordinates(String prefix, OTSLine3D line, String separator)
prefix
- String; text to put before the coordinatesline
- OTSLine3D; the line for which to print the pointsseparator
- String; prepended to each coordinatepublic static String printCoordinates(String prefix, OTSPoint3D[] points, int fromIndex, int toIndex, String separator)
prefix
- String; text to put before the outputpoints
- OTSPoint3D[]; the coordinates to printfromIndex
- int; index of the first coordinate to printtoIndex
- int; one higher than the index of the last coordinate to printseparator
- String; prepended to each coordinateCopyright © 2014–2018 Delft University of Technology. All rights reserved.