Changeset 2908


Ignore:
Timestamp:
06/26/07 17:35:55 (12 years ago)
Author:
sorber
Message:

Added test folder; moved MathUtilTest inside.
Added class Segment2D and test class, test/Segment2DTest.

Location:
trunk/loci/visbio/util
Files:
4 added
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/visbio/util/MathUtil.java

    r2903 r2908  
    322322  } 
    323323 
    324   /** Computes the N-D unit vector in the direction as the vector supplied. */ 
     324  /** Computes the N-D unit vector in the direction of the vector supplied. */ 
    325325  public static float[] unit(float[] v) { 
    326326    float mag = mag(v); 
     
    461461  } 
    462462 
    463   /** Gets a unit vector which bisects (p1 - p2) and (p3 - p2).  */ 
     463  /**  
     464   * Gets a unit vector which bisects (p1 - p2) and (p3 - p2).  
     465   * This vector points to the 'right' side of the line defined by p1->p2->p3. 
     466   */  
    464467  public static float[] getRightBisectorVector2D(float[] p1, float[] p2, 
    465468      float[] p3) 
    466469  { 
    467470    // System.out.println("entering getBisectorVector2D ..."); //TEMP 
     471     
    468472    // Always retrieves the bisector vector on the right (as opposed to left) 
    469473    // side of the angle made by the two vectors. 
Note: See TracChangeset for help on using the changeset viewer.