일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- 복사대입연산자
- 스마트포인터
- UE5
- 언리얼5
- 언리얼 엔진5
- 자료구조
- 복사생성자
- Unreal Engine
- C++
- 게임프로그래밍패턴
- 프로그래밍
- 게임 개발
- 디자인패턴
- CPP
- 언리얼엔진5
- 게임개발
- BehaviorTree
- 언리얼
- Unreal
- cpp개발
- 프로세스
- C언어
- Unreal Engine5
- 포인터
- 배열
- 언리얼엔진
- AI
- effectivec++
- Vector
- 데이터구조
- Today
- Total
목록Vector (2)
리얼 개발
#include #include //정렬template void Sort(T first, T last, U compare){ for (auto i = first; i != last; ++i) { for (auto j = i; j != last; ++j) { if (compare(*i, *j)) { auto temp = *i; *i = *j; *j = temp; } } }}//유니크template T unique(T first, T last){ if (first == last) // 빈 범위인 경우 return last; T result = first; while (first != last) { if (*first == *result) ++first; else { ..

FVectorFVector 는 언리얼 엔진의 Vector 단위인 UE::Math::TVector 를 대신하는 매크로이다. 이는 MathFwd.h 파일에 선언되어 있다. 실질적인 기능들이 정의되어 있는 Vector.h 파일을 살펴보자.templatestruct TVectorTVector는 템플릿 구조체로 선언되어 있다. 우리가 엔진에서 사용하는 FVector는 TVector 구조체의 double형만을 나타내는 구조체이다. /** A zero vector (0,0,0) */CORE_API static const TVector ZeroVector;/** One vector (1,1,1) */CORE_API static const TVector OneVector;/** Unreal up vector (0,0,..