この関数では引数coordinateが以下の全ての条件を満たしているか否かをチェックする。
いずれかの条件が満たされていない場合はプログラムをエラー終了する。
This function checks if the argument coordinate satisfies
all the requirements below.
If one of the requirements is not met,
the program finishes as an error.
メンバsignの値(座標の符号)がまたはになっているか。
Whether the value of member sign
(which represents the sign of the coordinate)
is either or .
メンバdegの値(座標の「度」)が0-359の範囲の値になっているか。
Whether the value of member deg
(which represents the degree of the coordinate)
is in a range of 0-359.
メンバminの値(座標の「分」)が0-59の範囲の値になっているか。
Whether the value of member min
(which represents the minute of the coordinate)
is in a range of 0-59.
メンバsecの値(座標の「秒」)が0.0以上60.0未満になっているか。
Whether the value of member sec
(which represents the second of the coordinate)
is greater than or equal to 0.0 and less than 60.0.