Package org.gbcpainter.geom

Examples of org.gbcpainter.geom.MutableSegment2D


  public Segment startNewPart( @NotNull final PERPENDICULAR_DIRECTION direction ) throws IllegalStateException {
    this.checkNotStarted();

    if ( currentSegment != null ) {
      segmentsList.put( new ImmutableSegment2D( (Segment) currentSegment ), currentDirection );
      currentSegment = new MutableSegment2D( currentSegment.getXB(), currentSegment.getYB(), currentSegment.getXB(), currentSegment.getYB() );
      totalLength += currentLength;
    } else {
      currentSegment = new MutableSegment2D( 0, 0, 0, 0 );
    }

    currentLength = 0;
    currentDirection = direction;
    return currentSegment;
View Full Code Here

TOP

Related Classes of org.gbcpainter.geom.MutableSegment2D

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.