📄 position.ctxt
字号:
#BlueJ class context
comment0.params=xcoord\ ycoord
comment0.target=Position(float,\ float)
comment0.text=\nConstructor\ for\ Position\ objects\n@param\ \ xcoord\ \ the\ x\ coordinate\ of\ the\ object\ being\ simulated\n@param\ \ ycoord\ \ the\ y\ coordinate\ of\ the\ object\ being\ simulated\n\n
comment1.target=float\ getX()
comment1.text=\nAccessor\ method\ for\ the\ x\ coordinate\n\n@return\ \ \ \ \ x\ coordinate\ of\ this\ position\n\n
comment2.target=float\ getY()
comment2.text=\nAccessor\ method\ for\ the\ y\ coordinate\n\n@return\ \ \ \ \ y\ coordinate\ of\ this\ position\n\n
comment3.params=p1\ p2
comment3.target=float\ angleToNorth(Position,\ Position)
comment3.text=\nFinds\ the\ angle\ between\ the\ line\ drawn\ between\ two\ points\ and\ the\ "y"\ axis.\n\n@param\ \ p1\ \ \ the\ <code>Position</code>\ of\ the\ start\ of\ the\ line\n@param\ \ p2\ \ \ the\ <code>Position</code>\ of\ the\ end\ of\ the\ line\n@return\ \ \ \ \ \ the\ angle\ in\ radians\ clockwise\ from\ the\ y-axis\ to\ the\ line\n\n
comment4.params=p1\ p2
comment4.target=float\ distance(Position,\ Position)
comment4.text=\nFinds\ the\ distance\ between\ two\ points\n\n@param\ \ p1\ \ \ the\ <code>Position</code>\ of\ one\ of\ the\ points\n@param\ \ p2\ \ \ the\ <code>Position</code>\ of\ the\ other\ point\n@return\ \ \ \ \ \ the\ distance\ between\ the\ points\n\n
comment5.params=pos\ angle\ distance
comment5.target=Position\ atAngleDistance(Position,\ float,\ float)
comment5.text=\nCalculates\ a\ new\ point\ that\ is\ at\ a\ particular\ distance\ and\ heading\ from\ a\ starting\ point\n\n@param\ \ pos\ \ the\ <code>Position</code>\ to\ start\ at\n@param\ \ angle\ \ \ the\ angle\ to\ travel,\ in\ radians\ clockwise\ from\ the\ y-axis\n@param\ \ distance\ \ \ the\ distance\ to\ travel\n@return\ the\ new\ <code>Position</code>\n\n
numComments=6
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -