0.0D가 뭔가요?
Regretting
지식in에도 올렸는데...
자바파일을 짤 때,
a = 0.0D;
이런식으로 값을 주던데
숫자도 아니고 0.0D가 도대체 뭔가요?
0x5f5e100는 또 뭐죠?
(아래에 표시했어요...)
어떤건지 자세히 좀 설명해주세요... ^^
import java.awt.Color;
public class Square extends Move
{
public Square()
{
positiveInfluence = 0.0D;
negativeInfluence = 0.0D;
resultCharge = 0;
charge = 0;
positiveInfluence = 0.0D;
negativeInfluence = 0.0D;
resultCharge = 0;
color = new Color(0, 0, 0);
}
public Square(Square square)
{
positiveInfluence = 0.0D;
negativeInfluence = 0.0D;
resultCharge = 0;
square.charge = charge;
square.positiveInfluence = positiveInfluence;
square.negativeInfluence = negativeInfluence;
square.resultCharge = resultCharge;
square.color = color;
}
public void copyThisSquare(Square square)
{
charge = square.charge;
positiveInfluence = square.positiveInfluence;
negativeInfluence = square.negativeInfluence;
resultCharge = square.resultCharge;
color = square.color;
}
public void setPInfluence(int i, int j, int k, int l)
{
positiveInfluence += 0x5f5e100 / ((k - i) * (k - i) + (l - j) * (l - j));
negativeInfluence -= 0x5f5e100 / ((k - i) * (k - i) + (l - j) * (l - j));
}
.
.
.
생략