最新リリース情報

Loc (beta-005)2009-05-05 20:33
l4P5 (beta-003)2009-05-05 20:38
wrj4p5 (alpha-011)2009-05-05 20:41

最近の更新

2012-01-01
2010-03-25
2009-12-26
2009-05-06
2009-04-12
2009-03-02
2008-12-20
2008-08-08

Wikiガイド

サイドバー

Class Rod - the model of 3D-Line

test applet and codes are here

  1. * Class Rod, the model of partial line on the 3D space,
  2. * spanned from it's stern to it's bow
  3. * created by Classiclll, 6/28/2008
  4. Rod(Loc s, Loc b) // only constructor you can use
  5. Loc at(float t) // location at t, at(0):stern, at(me.length):bow
  6. Rod move(Loc to) // move stern to "to"
  7. Rod shift(Loc diff) // shift stern by "diff"
  8. Rod shiftI(Loc diff) // inverse shift
  9. Rod scale(float factor) // scale the size of me by factor
  10. Rod scaleI(float factor) // inverse scaling
  11. Loc intersect2D(Rod to) // intersect position on the x-y plane
  12. Rod rotate(Loc dir, float ang) // rotate me around the directonal vector
  13. Rod rotate(Rod ax, float ang) // rotate me around the ax (Rod, model of 3D line)
  14. float signedDist2D(Rod pt)// distance with sign of left/right side on the x-y plane
  15. float dist2D(Loc pt) // distance between "me" and "pt" on the x-y plane
  16. Loc normal(Loc pt) // the normal directional vector from "me" to "pt"
  17. Rod ortho(Loc pt) // the shortest rod connecting from "me" to "pt"
  18. Rod nearest(Rod to) // the shortest rod connecting from "me" to "to"
  19. float dist(Loc pt) // distance between "me" and "pt"
  20. boolean having(Loc pt) // is "me" having "pt" on myself ?
  21. float dist(Rod to) // least distance between "me" and line "to"
  22. boolean crossing(Rod to) // are "me" and "to" crossing each other ?
  23. float length() // length of me
  24. Loc stern() // location of the stern of me
  25. Loc bow() // location of the bow of me
  26. Loc fore() // foward direction of me, the unit vector
  27. Boolean equals(Object to)
  28. String toString()