18 lines
245 B
C
18 lines
245 B
C
struct Vec3
|
|
{
|
|
float x;
|
|
float y;
|
|
float z;
|
|
};
|
|
typedef Vec3;
|
|
|
|
float absVelocity(Vec3 vector)
|
|
{
|
|
float final = 0;
|
|
|
|
final = vector.x + vector.x;
|
|
final = vector.y + vector.y;
|
|
final = vector.z + vector.z;
|
|
|
|
return final;
|
|
} |