org.vectomatic.common.model.geometry
Class LineSegment
java.lang.Object
org.vectomatic.common.model.geometry.Segment
org.vectomatic.common.model.geometry.LineSegment
- All Implemented Interfaces:
- com.google.gwt.user.client.rpc.IsSerializable
public class LineSegment
- extends Segment
- implements com.google.gwt.user.client.rpc.IsSerializable
Class to represent a line segment in Path
Fields inherited from class org.vectomatic.common.model.geometry.Segment |
_bbox, _pts |
LineSegment
public LineSegment()
LineSegment
public LineSegment(Point[] pts)
LineSegment
public LineSegment(LineSegment segment)
toString
public String toString()
- Overrides:
toString
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
nearestPointOnSegment
public void nearestPointOnSegment(Point p,
Point dest)
- Description copied from class:
Segment
- Returns the closest point on the segment to the specified point
- Specified by:
nearestPointOnSegment
in class Segment
- Parameters:
p
- An arbitrary point pdest
- The closest point on the segment to p
clone
public Segment clone()
- Specified by:
clone
in class Segment
Copyright © 2010. All Rights Reserved.