# data[].attributes.body
//1
cyclone::Vector3 p(1, 4, -5);
cyclone::Vector3 v(5, 1, 4);
p += v;

//2
cyclone::Vector3 v1(1, 0, 0);
cyclone::Vector3 v2(0, 1, 0);
cyclone::Vector3 v3 = v1 + v2;

//3
cyclone::Vector3 v4(0, 1, 0);
v4 *= 5;

//4
cyclone::Vector3 start(8, 2, 5);
cyclone::Vector3 end(1, -1, 4);
cyclone::Vector3 esVec = end - start;

//5
cyclone::Vector3 v5(1, 3, 4);
v5.normalise();

# data[].attributes.body
//1
cyclone::Vector3 p(1, 4, -5);
cyclone::Vector3 v(5, 1, 4);
p += v;

//2
cyclone::Vector3 v1(1, 0, 0);
cyclone::Vector3 v2(0, 1, 0);
cyclone::Vector3 v3;
v3 = v1 + v2;

//3
cyclone::Vector3 v4(0, 1, 0);
v4 *= 5.0f;

//4
cyclone::Vector3 v5(8, 2, 5);
cyclone::Vector3 v6(1, -1, 4);
cyclone::Vector3 v7 = v6 - v5;

//5
cyclone::Vector3 v8(1, 3, 4);
v8.normalise();

# data[].attributes.body
//1

cyclone::Vector3 p(1, 4, -5);
cyclone::Vector3 v(5, 1, 4);

p += v;

//2

cyclone::Vector3 v1(1, 0, 0);
cyclone::Vector3 v2(0, 1, 0);

cyclone::Vector3 v3 = v1 + v2;

//3

cyclone::Vector3 v4(0, 1, 0);

v4 *= 5;

//4

cyclone::Vector3 start(8, 2, 5);
cyclone::Vector3 end(1, -1, 4);

cyclone::Vector3 result = end - start;

//5

cyclone::Vector3 v5(1, 3, 4);
v5.normalise();

# data[].attributes.body
cyclone::Vector3 p(1, 4 - 5);
cyclone::Vector3 v(5, 1, 4);
cyclone::Vector3 z = p + v;

//2번
cyclone::Vector3 v1(1, 0, 0);
cyclone::Vector3 v2(0, 1, 0);
cyclone::Vector3 v3 = v1 + v2;

//3번
cyclone::Vector3 x(0, 1, 0);
x *= 5;

//4번
cyclone::Vector3 x1(8, 2, 5);
cyclone::Vector3 x2(1, -1, 4);
cyclone::Vector3 x3 = x2 - x1;

//5번
cyclone::Vector3 x4(1, 3, 4);
cyclone::Vector3 x4.normalise();

# data[].attributes.body
// 1
Vector3 p(1, 4, -5);
Vector3 v(5, 1, 4);
p += v;

// 2
Vector3 v1(1, 0, 0);
Vector3 v2(0, 1, 0);
Vector3 v3 = v1 + v2;

// 3
Vector3 v1(0, 1, 0);
v1 *= 5;

// 4
Vector3 sp(8, 2, 5);
Vector3 ep(1, -1, 4);
Vector3 v = ep - sp;

// 5
Vector3 v(1, 3, 4);
v.normalise();

# data[].attributes.body
배문성

//1번. Point p(1,4,-5)를 vector v(5,1,4)만큼 이동하라
cyclone::Vector3 p(1,4,-5);
cyclone::Vector3 v(5, 1, 4);

cyclone::Vector3 R = v + p;
std::cout << R.toString() << std::endl;

//2번. vector v1(1,0,0) 과 vectro v2(0,1,0)를 더하라
cyclone::Vector3 v1(1, 0, 0);
cyclone::Vector3 v2(0, 1, 0);

cyclone::Vector3 r = v1 + v2;
std::cout << r.toString() << std::endl;

//3번. Vector v3에 scalar 5를 곱하라
cyclone::Vector3 v3(0,1,0);
cyclone::Vector3 a = v3 * 5;
std::cout << a.toString() << std::endl;

//4번. 시작점(8,2,5)와 끝점(1,-1,4)를 잇는 벡터를 구하시오
cyclone::Vector3 s(8, 2, 5);
cyclone::Vector3 e(1, -1, 4);
cyclone::Vector3 V = e - s;
std::cout << V.toString() << std::endl;

//5번. vector V1(1,3,4)를 정규화(normalize)하시오
cyclone::Vector3 v5(1, 3, 4);
cyclone::Vector3 A1 = v5.normalise();
std::cout << A1.toString() << std::endl;

# data[].attributes.body
//1
cyclone::Vector3 p(1, 4, -5);
cyclone::Vector3 v(5, 1, 4);
p += v;
std::cout << p.toString() << std::endl;

//2
cyclone::Vector3 v1(1, 0, 0);
cyclone::Vector3 v2(0, 1, 0);
cyclone::Vector3 v3 = v1 + v2;
std::cout << v3.toString() << std::endl;

//3
cyclone::Vector3 v01(0, 1, 0);
v01*=5.0f;
std::cout << v01.toString() << std::endl;

//4
cyclone::Vector3 s(8, 2, 5);
cyclone::Vector3 e(1, -1, 4);
cyclone::Vector3 b = e - s;
std::cout << b.toString() << std::endl;

//5
cyclone::Vector3 v0(1, 3, 4);
v0.normalise();
std::cout << v0.toString() << std::endl;

# data[].attributes.body
//1
cyclone::Vector3 p(1, 4, 5);
cyclone::Vector3 v(5, 1, 4);
p += v;

//2
cyclone::Vector3 v1(1, 0, 0);
cyclone::Vector3 v2(0, 1, 0);
cyclone::Vector3 v3 = v1 + v2;

//3
cyclone::Vector3 v1(0, 1, 0);
v1 *= 5;

//4
cyclone::Vector3 start(8, 2, 5);
cyclone::Vector3 end(1, -1, 4);
cyclone::Vector3 v = end - start;

//5
cyclone::Vector3 v(1, 3, 4);
v.normalise();

# data[].attributes.body
//1
cyclone::Vector3 p(1, 4, -5);
cyclone::Vector3 v(5, 1, 4);
p += v;

//2
cyclone::Vector3 v1(1, 0, 0);
cyclone::Vector3 v2(0, 1, 0);
v1 += v2;

//3
v1 = cyclone::Vector3(0, 1, 0);
v1 *= 5;

//4
cyclone::Vector3 start(8, 2, 5);
cyclone::Vector3 end(1, -1, 4);
cyclone::Vector3 v3 = end - start;

//5
cyclone::Vector3 nor(1, 3, 4);
nor.normalise();

# data[].attributes.body
//1
cyclone::Vector3 p(1, 4, -5);
cyclone::Vector3 v(5, 1, 4);
p += v;

//2
cyclone::Vector3 v1(1, 0, 0);
cyclone::Vector3 v2(0, 1, 0);
cyclone::Vector3 v12 = v1 + v2;

//3
cyclone::Vector3 v1(0, 1, 0);
v1 *= 5.0f;

//4
cyclone::Vector3 v1(8, 2, 5);
cyclone::Vector3 v2(1, -1, 4);
cyclone::Vector3 v3 = v2 - v1;

//5
cyclone::Vector3 v(1, 3, 4);
v.normalise();

# data[].attributes.body
//1

cyclone::Vector3 p(1,4,5)
cyclone::Vector3 v(5,14)
p+=v;

//2
cyclone::Vector3 v1(1,0,0);
cyclone::Vector3 v2(0,1,0);
cyclone::Vector3 v3 =v1 +v2;

//3

cyclone::Vector3 v3(0,1,0);
v3*=5;

//4
cyclone::vector3 start(8,2,5);
cyclone::vector3 end(1,-1,4);
cyclone::vector3 v6 = end - start;

//5

cyclone::Vector3 v7(1,3,4);
cyclone::Vector3 v7.normalise();

# data[].attributes.body
//1.
cyclone::Vector3 p(1, 4, -5);
cyclone::Vector3 v(5, 1, 4);
p += v;

//2.
cyclone::Vector3 v1(1, 0, 0);
cyclone::Vector3 v2(0, 1, 0);
cyclone::Vector3 v3 = v1 + v2;

//3.
cyclone::Vector3 v1(0, 1, 0);
v1*=5.0;

//4
cyclone::Vector3 s(8, 2, 5);
cyclone::Vector3 e(1, -1, 4);
cyclone::Vector3 v = s - e;

//5
cyclone::Vector3 v(1, 3, 4);
v.normalise();

# data[].attributes.body
#include <iostream>

#define _USE_MATH_DEFINES
#include <cmath>

#include "core.h"

int main()
{
//1
cyclone::Vector3 p(1, 4, -5);
cyclone::Vector3 v(5, 1, 4);
p += v;

//2
cyclone::Vector3 v1(1, 0, 0);
cyclone::Vector3 v2(1, 0, 0);
cyclone::Vector3 v3 = v1 + v2;

//3
v1 = cyclone::Vector3(0, 1, 0);
v1 *= 5;

//4
cyclone::Vector3 end(1, -1, 4);
cyclone::Vector3 start(8, 2, 5);
cyclone::Vector3 result;
result = end - start;

//5
v = cyclone::Vector3(1, 3, 4);
v.normalise();

return 0;

}

# data[].attributes.body
//1
cyclone::Vector3 p(1, 4, -5);
cyclone::Vector3 v(5, 1, 4);

p += v;

//2
cyclone::Vector3 v1(1, 0, 0);
cyclone::Vector3 v2(0, 1, 0);

cyclone::Vector3 v3 = v1 + v2;

//3
cyclone::Vector3 v1_1(0, 1, 0);
v1_1 *= 5.0f;

//4
cyclone::Vector3 start(8, 2, 5);
cyclone::Vector3 end(1, -1, 4);
cyclone::Vector3 vect = end - start;

//5
cyclone::Vector3 v_1(1, 3, 4);
v_1.normalise();

# data[].attributes.body
// 1
cyclone::Vector3 p(1, 4, -5);
cyclone::Vector3 v(5, 1, 4);
p += v;

// 2
cyclone::Vector3 v1(1, 0, 0);
cyclone::Vector3 v2(1, 0, 0);
cyclone::Vector3 v3 = v1 + v2;

// 3
cyclone::Vector3 v(0, 1, 0);
v *= 5;

// 4
cyclone::Vector3 start(8, 2, 5);
cyclone::Vector3 end(1, -1, 4);

cyclone::Vector3 v = end - start;

// 5
cyclone::Vector3 v(1, 3, 4);
v.normalise();

# data[].attributes.body
//1
cyclone::Vector3 P(1, 4, -5);
cyclone::Vector3 v(5, 1, 4);
P += v;

//2
cyclone::Vector3 v1(1, 0, 0);
cyclone::Vector3 v2(0, 1, 0);
cyclone::Vector3 v3;
v3 = v1 + v2;
//3
cyclone::Vector3 v4(0, 1, 0);
v4 *= 5;

//4
cyclone::Vector3 start(8, 2, 5);
cyclone::Vector3 end(1, -1, 4);
cyclone::Vector3 line = end - start;

//5
cyclone::Vector3 v5(1, 3, 4);
v5.normalise();

# data[].attributes.body
// 1
cyclone::Vector3 P(1, 4, -5);
cyclone::Vector3 v(5, 1, 4);
P += v;

// 2
cyclone::Vector3 v1(1, 0, 0);
cyclone::Vector3 v2(0, 1, 0);
cyclone::Vector3 v3 = v1 + v2;

// 3
cyclone::Vector3 v4(0, 1, 0);
v4 *= 5;

// 4
cyclone::Vector3 start(8, 2, 5);
cyclone::Vector3 end(1, -1, 4);
cyclone::Vector3 output = end - start;

// 5
cyclone::Vector3 v5(1, 3, 4);
v5.normalise();

# data[].attributes.body
// 1
Vector3 p(1, 4, -5);
Vector3 v(5, 1, 4);
p += v; // p를 v만큼 이동

// 2
Vector3 v1(1, 0, 0), v2(0, 1, 0);
cout << (v1 + v2).toString() << endl; // 더하기

// 3
Vector3 v3(0, 1, 0);
v3 *= 5; // 스칼라 값 5 곱하기

// 4
Vector3 v4 = Vector3(1, -1, 4) - Vector3(8, 2, 5); // 끝점 - 시작점

// 5
Vector3 v5(1, 3, 4);
v5.normalise(); // 정규화

# data[].attributes.body
//1
Vector3 p(1, 4, -5);
Vector3 q(4, 1, 4);
Vector3 v = p + q;

//2
Vector3 v1(1, 0, 0);
Vector3 v2(0, 1, 0);
Vector3 v3 = v1 + v2;

//3
Vector3 v1(0, 1, 0);
v1 *= 5;

//4
Vector3 start(8, 2, 5);
Vector3 end(1, -1, 4);
Vector3 route = end - start;

//5
Vector3 v(1, 3, 4);
v.normalise();

# data[].attributes.body
//1

//2

//3

//4

//5소스코드 paste

# data[].attributes.body
//1
Vector3 p(1, 4, -5);
Vector3 v(5, 1, 4);
p += v;
//2
Vector3 v1(1, 0, 0);
Vector3 v2(0, 1, 0);
Vector3 v3 = v1 + v2;
//3
Vector3 v1(0, 1, 0);
v1 *= 5.0f;
//4
Vector3 p1(8, 2, 5);
Vector3 p2(1, -1, 4);
Vector3 v = p1 - p2;
//5
Vector3 v(1, 3, 4);
v.normalise();