質問編集履歴
2
文字の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -96,6 +96,7 @@
|
|
96
96
|
}
|
97
97
|
|
98
98
|
使用したいコード
|
99
|
+
一つ目
|
99
100
|
void printAngle(RotatedRect calculatedRect){
|
100
101
|
if(calculatedRect.size.width < calculatedRect.size.height){
|
101
102
|
printf("Angle along longer side: %7.2f\n", calculatedRect.angle+180);
|
@@ -104,6 +105,7 @@
|
|
104
105
|
}
|
105
106
|
}
|
106
107
|
|
108
|
+
二つ目
|
107
109
|
printf("Angle given by minAreaRect: %7.2f\n", calculatedRect.angle);
|
108
110
|
printAngle(calculatedRect);
|
109
111
|
printf("---\n");
|
1
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
https://stackoverflow.com/questions/15956124/minarearect-angles-unsure-about-the-angle-returned
|
2
|
-
上のURLにあるプログラムでは0
|
2
|
+
上のURLにあるプログラムでは0度から90度の範囲で10度ずつ与えながら、長方形が回転していきます。これを下のコメントにあるように0度から180度の範囲で10度ずつ与えるようにしたいと考え、コメントにある使用するコードを入れたのですが、結果が変わらなかったり、エラーを吐いてしまいます。そのため、使用するコードをどこに入れたら良いのか教えてほしいです。
|
3
3
|
0~90度の範囲のプログラムのもの↓
|
4
4
|
#define _CRT_SECURE_NO_WARNINGS
|
5
5
|
|