 Wrj4P5

最新リリース情報

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

Class Tag - the model of 3D-Plane

1. * Class Tag, the model of (partial) plane on the 3D space,
2. * spanned from it's stern and star to it's bow and port
3. * created by Classiclll, 7/28/2008
4. Tag(Loc s, Loc b, Loc r) // only constructor you can use, and
5. Tag(Tag frm) // constructor you can use
6. Loc at(float s, float b) // location at (s,b),
7. // at(0,0):stern, at(0,me.length):bow, at(me.width,0):star
8. Tag move(Loc to) // move stern to "to"
9. Tag shift(Loc diff) // shift stern by "diff"
10. Tag shiftI(Loc diff) // inverse shift
11. Tag scale(float factor) // scale the size of me by factor
12. Tag scaleI(float factor) // inverse scaling
13. Tag rotate(Loc ax, float ang) // rotate my direction around the axs
14. Tag rotate(Rod ax, float ang) // rotate my direction around the ax
15. Tag rotate(Loc dir, float ang) // rotate me around the directonal vector
16. Tag rotate(Rod ax, float ang) // rotate me around the ax (Rod, model of 3D line)
17. Rod intersect(Tag to) // intersect line with me and to
18. Loc intersect(Rod ln) // intersect point with me and ln
19. float angle(Tag to) // angle between each normal vector, me and to
20. float dist(Loc pt) // distance between "me" and "pt", = length of ortho(pt)
21. Rod ortho(Loc pt) // the orthogonal rod connecting from "pt" to "me"
22. boolean having(Loc pt) // is "me" having "pt" on myself ?
23. float length() // length of me
24. float width() // width of me
25. Loc stern() // location of the stern of me, the base position
26. Loc bow() // location of the bow of me
27. Loc starBoard() // location of the star of me
28. Loc fore() // foward direction of me, the unit vector
29. Loc star() // right direction of me, the unit vector
30. Loc normal() // upword direction of me, the unit vector
31. Rod keel() // line model of me's front/end, the Rod
32. Boolean equals(Object to)
33. String toString()