PathLine Class
Defines a straight line (a path segment).
Declaration
public final class PathLine extends Struct<PathLine> implements IPathSegment, IEquatable<PathLine>
Inherited Members
Inheritance
Constructors
PathLine() Constructor
Initializes a new instance of the PathLine class.
Declaration
public PathLine()
PathLine(AdjustCoordinate x, AdjustCoordinate y) Constructor
Initializes a new instance of the PathLine class with specified settings.
Declaration
public PathLine(AdjustCoordinate x, AdjustCoordinate y)
Parameters
| Name | Type | Description |
|---|---|---|
| x | AdjustCoordinate | The X-coordinate. |
| y | AdjustCoordinate | The Y-coordinate. |
PathLine(float x, float y) Constructor
Initializes a new instance of the PathLine class with specified settings.
Declaration
public PathLine(float x, float y)
Parameters
| Name | Type | Description |
|---|---|---|
| x | float | The X-coordinate. |
| y | float | The Y-coordinate. |
Methods
equals(Object obj) Method
Determines whether the specified object is equal to the current PathLine instance.
Declaration
public boolean equals(Object obj)
Parameters
| Name | Type | Description |
|---|---|---|
| obj | Object | The object to compare with the current |
Returns
| Type | Description |
|---|---|
| boolean |
|
equals(PathLine other) Method
Determines whether the specified PathLine is equal to the current PathLine.
Declaration
public boolean equals(PathLine other)
Parameters
| Name | Type | Description |
|---|---|---|
| other | PathLine |
The |
Returns
| Type | Description |
|---|---|
| boolean |
|
getX() Method
Returns the X-coordinate of the path line.
Declaration
public AdjustCoordinate getX()
Returns
| Type | Description |
|---|---|
| AdjustCoordinate | The X-coordinate. |
getY() Method
Returns the Y-coordinate of the path line.
Declaration
public AdjustCoordinate getY()
Returns
| Type | Description |
|---|---|
| AdjustCoordinate | The Y-coordinate. |
hashCode() Method
Returns a hash code for this PathLine object.
Declaration
public int hashCode()
Returns
| Type | Description |
|---|---|
| int | The identification number. |