Package com.anylogic.engine.markup
- java.lang.Object
- com.anylogic.engine.markup.Slope
- All Implemented Interfaces:
Serializable
public class Slope extends Object implements Serializable
- See Also:
- Serialized Form
Constructor | Description |
---|---|
Slope |
Constructs a slope with specific attributes.
|
Slope |
Constructs a slope with specific attributes.
|
Modifier and Type | Method | Description |
---|---|---|
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).
|
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).
|
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).
|
double | getHorizontalAngle() |
Returns the horizontal angle, it terms of radian
|
SlopeType | getType() |
Returns slope type
|
double | getVerticalAngle() |
Returns the vertical angle, it terms of radian
|
double | getX() |
Returns the x coordinate of the start line point
|
double | getY() |
Returns the y coordinate of the start line point
|
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 pointy
- the y coordinate of the line start pointdx
- the difference of x coordinates of the line end and start pointsdy
- the difference of y coordinates of the line end and start pointsdz
- the difference of z coordinates of the line end and start points
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 pointy
- the y coordinate of the slope start pointhorizontalAngle
- the horizontal angleverticalAngle
- the vertical angle
public SlopeType getType()
Returns slope type
- Returns:
- slope type
public double getX()
Returns the x coordinate of the start line point
- Returns:
- the x coordinate of the start line point
public double getY()
Returns the y coordinate of the start line point
- Returns:
- the y coordinate of the start line point
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
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
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
public double getHorizontalAngle()
Returns the horizontal angle, it terms of radian
- Returns:
- the horizontal slope angle
public double getVerticalAngle()
Returns the vertical angle, it terms of radian
- Returns:
- the horizontal slope angle