AnyLogic
Expand
Font size
All Implemented Interfaces:
Serializable

public class Slope
extends Object
implements Serializable
See Also:
Serialized Form

Constructor Summary

ConstructorDescription
Slope(double x, double y, double horizontalAngle, double verticalAngle)
Constructs a slope with specific attributes.
Slope(double x, double y, double dx, double dy, double dz)
Constructs a slope with specific attributes.

Method Summary

Modifier and TypeMethodDescription
doublegetDx()
Returns the x-offset of the end line point relative to the start one (the difference of x coordinates of the line end and start points).
doublegetDy()
Returns the y-offset of the end line point relative to the start one (the difference of x coordinates of the line end and start points).
doublegetDz()
Returns the z-offset of the end line point relative to the start one (the difference of x coordinates of the line end and start points).
doublegetHorizontalAngle()
Returns the horizontal angle, it terms of radian
SlopeTypegetType()
Returns slope type
doublegetVerticalAngle()
Returns the vertical angle, it terms of radian
doublegetX()
Returns the x coordinate of the start line point
doublegetY()
Returns the y coordinate of the start line point

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

Slope

public Slope(double x,
 double y,
 double dx,
 double dy,
 double dz)
Constructs a slope with specific attributes.
Parameters:
x - the x coordinate of the line start point
y - the y coordinate of the line start point
dx - the difference of x coordinates of the line end and start points
dy - the difference of y coordinates of the line end and start points
dz - the difference of z coordinates of the line end and start points

Slope

public Slope(double x,
 double y,
 double horizontalAngle,
 double verticalAngle)
Constructs a slope with specific attributes.
Parameters:
x - the x coordinate of the slope start point
y - the y coordinate of the slope start point
horizontalAngle - the horizontal angle
verticalAngle - the vertical angle

Method Details

getType

public SlopeType getType()
Returns slope type
Returns:
slope type

getX

public double getX()
Returns the x coordinate of the start line point
Returns:
the x coordinate of the start line point

getY

public double getY()
Returns the y coordinate of the start line point
Returns:
the y coordinate of the start line point

getDx

public double getDx()
Returns the x-offset of the end line point relative to the start one (the difference of x coordinates of the line end and start points).
Returns:
the x-offset of the end line point relative to the start one

getDy

public double getDy()
Returns the y-offset of the end line point relative to the start one (the difference of x coordinates of the line end and start points).
Returns:
the y-offset of the end line point relative to the start one

getDz

public double getDz()
Returns the z-offset of the end line point relative to the start one (the difference of x coordinates of the line end and start points).
Returns:
the z-offset of the end line point relative to the start one

getHorizontalAngle

public double getHorizontalAngle()
Returns the horizontal angle, it terms of radian
Returns:
the horizontal slope angle

getVerticalAngle

public double getVerticalAngle()
Returns the vertical angle, it terms of radian
Returns:
the horizontal slope angle