Relocated src and include files
This commit is contained in:
parent
a209128a07
commit
1fa7681c0d
@ -1,5 +1,6 @@
|
||||
cmake_minimum_required(VERSION 3.13) # CMake version check
|
||||
project(VectorAlgebra) # Create project "simple_example"
|
||||
set(CMAKE_CXX_STANDARD 14) # Enable c++14 standard
|
||||
include_directories(include)
|
||||
|
||||
add_library(VectorAlgebra STATIC Vector3.cpp Quaternion.cpp)
|
||||
add_library(VectorAlgebra STATIC "src/Vector3.cpp" "src/Quaternion.cpp")
|
@ -230,6 +230,14 @@ public:
|
||||
/// <param name="twist">A pointer to the quaternion for the twist result</param>
|
||||
static void GetSwingTwist(Vector3 axis, Quaternion rotation, Quaternion* swing, Quaternion* twist);
|
||||
|
||||
/// <summary>
|
||||
/// Calculate the dot product of two quaternions
|
||||
/// </summary>
|
||||
/// <param name="rotation1">The first rotation</param>
|
||||
/// <param name="rotation2">The second rotation</param>
|
||||
/// <returns></returns>
|
||||
static float Dot(Quaternion rotation1, Quaternion rotation2);
|
||||
|
||||
private:
|
||||
float GetLength() const;
|
||||
float GetLengthSquared() const;
|
||||
@ -238,7 +246,6 @@ private:
|
||||
void ToAxisAngleRad(const Quaternion& q, Vector3* const axis, float* angle);
|
||||
static Quaternion FromEulerRad(Vector3 euler);
|
||||
|
||||
static float Dot(Quaternion a, Quaternion b);
|
||||
|
||||
Vector3 xyz() const;
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user