public abstract class AbstractCSEObject
extends org.opentrafficsim.core.object.StaticObject
Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Constructor and Description |
---|
AbstractCSEObject(org.opentrafficsim.core.geometry.OTSLine3D geometry,
org.djunits.value.vdouble.scalar.Length.Rel height) |
Modifier and Type | Method and Description |
---|---|
protected static org.opentrafficsim.core.geometry.OTSLine3D |
createRectangleNextToCSE(CrossSectionElement cse,
org.djunits.value.vdouble.scalar.Length.Rel position,
org.djunits.value.vdouble.scalar.Length.Rel length,
org.djunits.value.vdouble.scalar.Length.Rel width,
org.djunits.value.vdouble.scalar.Length.Rel height,
org.djunits.value.vdouble.scalar.Length.Rel distance)
Create an object around a position on the center of a cross section element (e.g.
|
protected static org.opentrafficsim.core.geometry.OTSLine3D |
createRectangleOnCSE(CrossSectionElement cse,
org.djunits.value.vdouble.scalar.Length.Rel position,
org.djunits.value.vdouble.scalar.Length.Rel length,
org.djunits.value.vdouble.scalar.Length.Rel width,
org.djunits.value.vdouble.scalar.Length.Rel height)
Create an object around a position on the center of a cross section element (e.g.
|
public AbstractCSEObject(org.opentrafficsim.core.geometry.OTSLine3D geometry, org.djunits.value.vdouble.scalar.Length.Rel height)
geometry
- the geometry of the objectheight
- the height of the objectprotected static org.opentrafficsim.core.geometry.OTSLine3D createRectangleOnCSE(CrossSectionElement cse, org.djunits.value.vdouble.scalar.Length.Rel position, org.djunits.value.vdouble.scalar.Length.Rel length, org.djunits.value.vdouble.scalar.Length.Rel width, org.djunits.value.vdouble.scalar.Length.Rel height) throws org.opentrafficsim.core.geometry.OTSGeometryException
cse
- the cross section element, e.g. lane, where the block is locatedposition
- the relative position on the design line of the link for this blocklength
- the length of the object, parallel to the center line of the csewidth
- the width of the object, perpendicular to the center line of the cseheight
- the height of the object, above to the center line of the cseorg.opentrafficsim.core.geometry.OTSGeometryException
- in case of degenerate line or position beyond the center lineprotected static org.opentrafficsim.core.geometry.OTSLine3D createRectangleNextToCSE(CrossSectionElement cse, org.djunits.value.vdouble.scalar.Length.Rel position, org.djunits.value.vdouble.scalar.Length.Rel length, org.djunits.value.vdouble.scalar.Length.Rel width, org.djunits.value.vdouble.scalar.Length.Rel height, org.djunits.value.vdouble.scalar.Length.Rel distance) throws org.opentrafficsim.core.geometry.OTSGeometryException
cse
- the cross section element, e.g. lane, where the block is locatedposition
- the relative position on the design line of the link for this blocklength
- the length of the object, parallel to the center line of the csewidth
- the width of the object, perpendicular to the center line of the cseheight
- the height of the object, above to the center line of the csedistance
- the lateral distance of the object to the lane's center line; note: plus is left, minus is rightorg.opentrafficsim.core.geometry.OTSGeometryException
- in case of degenerate line or position beyond the center lineCopyright © 2014–2016 Delft University of Technology. All rights reserved.