java.lang.Object
org.bzdev.geom.Path2DInfo.UValues
- Enclosing class:
- Path2DInfo
Class to represent a value of the path parameter u.
This class caches the parameter u and some related values
for use with methods defined for the
Path2DInfo.SegmentData
class.
This is useful when the same parameter will be used multiple times.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
getU()
Get the path parameter used to create this object.
-
Constructor Details
-
UValues
public UValues(double u) Constructor.- Parameters:
u
- the value of the path parameter in the range [0.0, 1.0]- Throws:
IllegalArgumentException
- the argument was out of range
-
UValues
public UValues(double u, int st) Constructor given the segment type. When a segment type is provided, this object may be used only with a SegmentData object with the same segment type.- Parameters:
u
- the value of the path parameter in the range [0.0, 1.0]st
- the path-segment type, legal values of which are- Throws:
IllegalArgumentException
- an argument was out of range
-
-
Method Details
-
getU
public double getU()Get the path parameter used to create this object.- Returns:
- the path parameter
-