Ticket #24229

NyARVecLinear2d#getVecCosの定義ミス

Open Date: 2011-01-21 22:12 Last Update: 2012-05-29 22:39

Reporter:
Owner:
(None)
Type:
Status:
Closed
MileStone:
(None)
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
None
File:
None

Details

	public final double getVecCos(NyARDoublePoint2d i_pos1,NyARDoublePoint2d i_pos2)
	{
		double d=getAbsVecCos(i_pos2.x-i_pos1.x,i_pos2.y-i_pos1.y);
		return d>=0?d:-d;
	}

で、絶対値を返している。絶対値を返す必要はない。

正しくは、

	public final double getVecCos(NyARDoublePoint2d i_pos1,NyARDoublePoint2d i_pos2)
	{
		return getVecCos(i_pos2.x-i_pos1.x,i_pos2.y-i_pos1.y);
	}

Ticket History (3/6 Histories)

2011-01-21 22:12 Updated by: nyatla
  • New Ticket "NyARVecLinear2d#getVecCosの定義ミス" created
2011-01-21 22:16 Updated by: nyatla
  • Details Updated
2011-01-21 22:16 Updated by: nyatla
  • Details Updated
2012-04-04 13:10 Updated by: nyatla
Comment

NyARToolkit,NyARToolkitCS 4.0.0でリリース済

2012-05-27 14:07 Updated by: nyatla
Comment

Java r806で修正。 4.0.0でリリース済み

2012-05-29 22:39 Updated by: nyatla
  • Status Update from Open to Closed
  • Ticket Close date is changed to 2012-05-29 22:39
Comment

AS 4.0.3でリリース確認。

Attachment File List

No attachments

Edit

Please login to add comment to this ticket » Login