Skip to content

Instantly share code, notes, and snippets.

@Curookie
Last active April 22, 2019 08:54
Show Gist options
  • Save Curookie/faccad7a910238ff0e0dba086a71b8b5 to your computer and use it in GitHub Desktop.
Save Curookie/faccad7a910238ff0e0dba086a71b8b5 to your computer and use it in GitHub Desktop.
코드, 게임 수학
  1. 오버플로우 주의
    byte 1Byte 2^8 256 -127~127

  2. C#에서 실수는 부 정확하다. (실수 비교는 유의해야 한다.)
    0.1f float 100번 더하면 1.0이 아니다!! (0.9999930 이런식의 값이 나온다.)
    if(n==float) 가 아닌
    Mathf.Approximately(n,float) 함수를 사용해야한다.

  3. 매트릭스(행렬)를 이해할 줄 알아야 엔진을 더 튼튼히 이해할 수 있다.
    Transform을 4x4 행렬로 변환하는 방법을 알아두자.

테일러 급수 = 근사값

아핀 공간 = 점인 공간을 표현하는 공간

행렬을 배우는 이유는 변환을 하기 위해서 이다. ( 로컬 -> 월드 -> 카메라 -> NDC -> 스크린 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment