math.geom2d.line
Interface LinearElement2D
-
- All Superinterfaces:
- CirculinearContinuousCurve2D, CirculinearCurve2D, CirculinearElement2D, CirculinearShape2D, java.lang.Cloneable, ContinuousCurve2D, ContinuousOrientedCurve2D, Curve2D, GeometricObject2D, LinearShape2D, OrientedCurve2D, Shape2D, SmoothCurve2D, SmoothOrientedCurve2D
- All Known Implementing Classes:
- AbstractLine2D, InvertedRay2D, Line2D, LineArc2D, LineSegment2D, Ray2D, StraightLine2D
public interface LinearElement2D extends CirculinearElement2D, LinearShape2D
A continuous linear shape, like a straight line, a line segment or a ray.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description CurveSet2D<? extends LinearElement2D>clip(Box2D box)Clip the shape with the given box, and returns a new shape.LinearElement2DsubCurve(double y0, double t1)Returns a portion of the original curve, delimited by two positions on the curve.LinearElement2Dtransform(AffineTransform2D trans)Transforms the shape by an affine transform.-
Methods inherited from interface math.geom2d.circulinear.CirculinearElement2D
parallel, reverse, transform
-
Methods inherited from interface math.geom2d.circulinear.CirculinearContinuousCurve2D
smoothPieces
-
Methods inherited from interface math.geom2d.circulinear.CirculinearCurve2D
continuousCurves, length, length, position
-
Methods inherited from interface math.geom2d.circulinear.CirculinearShape2D
buffer
-
Methods inherited from interface math.geom2d.curve.SmoothCurve2D
normal, tangent
-
Methods inherited from interface math.geom2d.curve.ContinuousCurve2D
appendPath, asPolyline, curvature, isClosed, leftTangent, rightTangent
-
Methods inherited from interface math.geom2d.domain.OrientedCurve2D
isInside, signedDistance, signedDistance, windingAngle
-
Methods inherited from interface math.geom2d.curve.Curve2D
asAwtShape, clone, draw, firstPoint, getT0, getT1, intersections, isSingular, lastPoint, point, position, project, singularPoints, t0, t1, vertices
-
Methods inherited from interface math.geom2d.Shape2D
boundingBox, contains, contains, distance, distance, isBounded, isEmpty
-
Methods inherited from interface math.geom2d.GeometricObject2D
almostEquals
-
Methods inherited from interface math.geom2d.line.LinearShape2D
direction, horizontalAngle, intersection, origin, supportingLine
-
-
-
-
Method Detail
-
transform
LinearElement2D transform(AffineTransform2D trans)
Description copied from interface:Shape2DTransforms the shape by an affine transform. Subclasses may override the type of returned shape.- Specified by:
transformin interfaceContinuousCurve2D- Specified by:
transformin interfaceContinuousOrientedCurve2D- Specified by:
transformin interfaceCurve2D- Specified by:
transformin interfaceLinearShape2D- Specified by:
transformin interfaceOrientedCurve2D- Specified by:
transformin interfaceShape2D- Specified by:
transformin interfaceSmoothCurve2D- Specified by:
transformin interfaceSmoothOrientedCurve2D- Parameters:
trans- an affine transform- Returns:
- the transformed shape
-
subCurve
LinearElement2D subCurve(double y0, double t1)
Description copied from interface:Curve2DReturns a portion of the original curve, delimited by two positions on the curve.- Specified by:
subCurvein interfaceCirculinearContinuousCurve2D- Specified by:
subCurvein interfaceCirculinearCurve2D- Specified by:
subCurvein interfaceCirculinearElement2D- Specified by:
subCurvein interfaceContinuousCurve2D- Specified by:
subCurvein interfaceContinuousOrientedCurve2D- Specified by:
subCurvein interfaceCurve2D- Specified by:
subCurvein interfaceSmoothCurve2D- Specified by:
subCurvein interfaceSmoothOrientedCurve2D- Parameters:
y0- position of the start of the sub-curvet1- position of the end of the sub-curve- Returns:
- the portion of original curve comprised between t0 and t1.
-
clip
CurveSet2D<? extends LinearElement2D> clip(Box2D box)
Description copied from interface:Shape2DClip the shape with the given box, and returns a new shape. The box must be bounded.- Specified by:
clipin interfaceCirculinearContinuousCurve2D- Specified by:
clipin interfaceCirculinearCurve2D- Specified by:
clipin interfaceCirculinearElement2D- Specified by:
clipin interfaceContinuousCurve2D- Specified by:
clipin interfaceContinuousOrientedCurve2D- Specified by:
clipin interfaceCurve2D- Specified by:
clipin interfaceOrientedCurve2D- Specified by:
clipin interfaceShape2D- Specified by:
clipin interfaceSmoothCurve2D- Specified by:
clipin interfaceSmoothOrientedCurve2D- Parameters:
box- the clipping box- Returns:
- the clipped shape
-
-
DMelt 3.0 © DataMelt by jWork.ORG