math.geom2d.line
Interface LinearShape2D

Package class diagram package LinearShape2D
All Superinterfaces:
CirculinearCurve2D, CirculinearShape2D, Cloneable, Curve2D, Serializable, Shape2D
All Known Implementing Classes:
AbstractLine2D, InvertedRay2D, Line2D, LineArc2D, LineObject2D, LineSegment2D, Ray2D, StraightLine2D

public interface LinearShape2D
extends CirculinearCurve2D

A curve that can be inscribed in a straight line, line a ray, a straight line, or a line segment.

Author:
dlegland

Field Summary
 
Fields inherited from interface math.geom2d.Shape2D
ACCURACY
 
Method Summary
 double getHorizontalAngle()
          Gets Angle with axis (O,i), counted counter-clockwise.
 Point2D getIntersection(LinearShape2D line)
          Returns the unique intersection with a linear shape.
 Point2D getOrigin()
          Returns a point in the linear shape.
 StraightLine2D getSupportingLine()
           
 Vector2D getVector()
          Return one direction vector of the linear shape.
 LinearShape2D transform(AffineTransform2D trans)
          Transforms the shape by an affine transform.
 
Methods inherited from interface math.geom2d.circulinear.CirculinearCurve2D
clip, getContinuousCurves, getLength, getLength, getParallel, getPosition, getReverseCurve, getSubCurve, transform
 
Methods inherited from interface math.geom2d.circulinear.CirculinearShape2D
getBuffer
 
Methods inherited from interface math.geom2d.curve.Curve2D
clone, draw, getAsAWTShape, getFirstPoint, getIntersections, getLastPoint, getPoint, getPosition, getSingularPoints, getT0, getT1, isSingular, project
 
Methods inherited from interface math.geom2d.Shape2D
contains, contains, getBoundingBox, getDistance, getDistance, isBounded, isEmpty
 

Method Detail

getSupportingLine

StraightLine2D getSupportingLine()

getHorizontalAngle

double getHorizontalAngle()
Gets Angle with axis (O,i), counted counter-clockwise. Result is given between 0 and 2*pi.


getOrigin

Point2D getOrigin()
Returns a point in the linear shape.

Returns:
a point in the linear shape.

getVector

Vector2D getVector()
Return one direction vector of the linear shape.

Returns:
a direction vector

getIntersection

Point2D getIntersection(LinearShape2D line)
Returns the unique intersection with a linear shape. If the intersection doesn't exist (parallel lines), returns null.


transform

LinearShape2D transform(AffineTransform2D trans)
Description copied from interface: Shape2D
Transforms the shape by an affine transform. Subclasses may override the type of returned shape.

Specified by:
transform in interface Curve2D
Specified by:
transform in interface Shape2D
Parameters:
trans - an affine transform
Returns:
the transformed shape


Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.