AnyLogic AnyLogic
Expand
Font size
  • 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

Constructor Summary

Constructors 
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

Method Summary

All Methods Instance Methods Concrete Methods 
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

Methods inherited from class java.lang.Object

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

Constructor Detail

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 Detail

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
How can we improve this article?