Develop and Download Open Source Software

最近の更新

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 Ship - the model of 3D-Space/Attitude

* Class Ship, the model of partial space on the 3D space,
 * 			spanned from it's stern and star to it's bow and port
 *					created by Classiclll, 7/28/2008
	 Ship(Loc s, Loc b, Loc r, Loc h)	
 	 	 	 //define with positions of stern,bow,starBoard, and bridgeTop,
	 Ship(Tag frm, Loc h)
	 Ship(Tag frm)

	 Loc at(float f, float s, float h)	// location at (s,b,u),
			// at(0,0,0):stern, at(0,me.length,0):bow, at(me.width,0,0):star
	 Ship move(Loc to)		// move stern to "to"
	 Ship shift(Loc diff)		// shift stern by "diff"
	 Ship shiftI(Loc diff)		// inverse shift
	 Ship scale(float factor)		// scale the size of me by factor
	 Ship scaleI(float factor)	// inverse scaling
	 Ship rotate(Loc dir, float ang)	// rotate me around the directonal vector
	 Ship rotate(Rod ax, float ang)	// rotate me around the ax (Rod, model of 3D line)
	 boolean having(Loc pt)		// is "me" having "pt" on myself ?
	 float length()			// length of me
	 float width()			// width of me
	 float hight()			// hight of me
	 Loc stern()			// location of the stern of me, the base position
	 Loc bow()			// location of the bow of me
	 Loc starBoard()		// location of the star of me
	 Loc bridgeTop()		// location of the bridge of me
	 Loc fore()			// foward direction of me, the unit vector
	 Loc star()			// right direction of me, the unit vector
	 Loc up()			// upword direction of me, the unit vector
	 Rod keel()			// front/end line of me, the Rod
	 Tag sea()			// horrisontal plane of me, the Tag
	 Boolean equals(Object to)
	 String toString()

SourceForge.JP is a Japanese version of SourceForge.net. For developments that are not related to Japan, we recommend you to use SourceForge.net.