Package com.anylogic.engine.markup
- java.lang.Object
-
- com.anylogic.engine.markup.Slope
- All Implemented Interfaces:
java.io.Serializable
public class Slope
extends java.lang.Object
implements java.io.Serializable
- See Also:
- Serialized Form
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.
|
Constructor | 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
|
Modifier and Type | Method | Description |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
-
How can we improve this article?
-