// at 90° position should be (0,0,sma) since the zero inclination
// reference plane is XZ and rotates counter-clockwise
- pos = orbit.Matrix(PI_0p5) * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f);
+ pos = orbit.Matrix(PI * 0.5) * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f);
AssertEqual(
"wrong position at t=90°",
glm::vec3(0.0f, 0.0f, -1.0f),
);
// at 270° position should be (0,0,-sma)
- pos = orbit.Matrix(PI_1p5) * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f);
+ pos = orbit.Matrix(PI * 1.5) * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f);
AssertEqual(
"wrong position at t=270°",
glm::vec3(0.0f, 0.0f, 1.0f),
);
// at 360° position should be (sma,0,0), the initial position
- pos = orbit.Matrix(PI_2p0) * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f);
+ pos = orbit.Matrix(PI * 2.0) * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f);
AssertEqual(
"wrong position at t=360°",
glm::vec3(1.0f, 0.0f, 0.0f),
// at 90° position should be (0,0,sma) since the zero inclination
// reference plane is XZ and rotates counter-clockwise
- pos = orbit.Matrix(PI_0p5) * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f);
+ pos = orbit.Matrix(PI * 0.5) * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f);
AssertEqual(
"wrong position at t=90°",
glm::vec3(0.0f, 0.0f, -2.0f),
);
// at 270° position should be (0,0,-sma)
- pos = orbit.Matrix(PI_1p5) * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f);
+ pos = orbit.Matrix(PI * 1.5) * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f);
AssertEqual(
"wrong position at t=270°",
glm::vec3(0.0f, 0.0f, 2.0f),
);
// at 360° position should be (sma,0,0), the initial position
- pos = orbit.Matrix(PI_2p0) * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f);
+ pos = orbit.Matrix(PI * 2.0) * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f);
AssertEqual(
"wrong position at t=360°",
glm::vec3(2.0f, 0.0f, 0.0f),
glm::vec3(pos) / pos.w
);
- pos = orbit.Matrix(PI_0p5) * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f);
+ pos = orbit.Matrix(PI * 0.5) * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f);
AssertEqual(
"wrong position at t=90°",
glm::vec3(-0.935130834579468f, 0.0f, -0.779740869998932f),
glm::vec3(pos) / pos.w
);
- pos = orbit.Matrix(PI_1p5) * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f);
+ pos = orbit.Matrix(PI * 1.5) * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f);
AssertEqual(
"wrong position at t=270°",
glm::vec3(-0.935130834579468f, 0.0f, 0.779740869998932f),
glm::vec3(pos) / pos.w
);
- pos = orbit.Matrix(PI_2p0) * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f);
+ pos = orbit.Matrix(PI * 2.0) * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f);
AssertEqual(
"wrong position at t=360°",
glm::vec3(0.5f, 0.0f, 0.0f),
glm::vec3(pos) / pos.w
);
- pos = orbit.Matrix(PI_0p5) * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f);
+ pos = orbit.Matrix(PI * 0.5) * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f);
AssertEqual(
"wrong position at t=90°",
glm::vec3(0.0f, 0.70710676908493f, -0.70710676908493f),
glm::vec3(pos) / pos.w
);
- pos = orbit.Matrix(PI_1p5) * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f);
+ pos = orbit.Matrix(PI * 1.5) * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f);
AssertEqual(
"wrong position at t=270°",
glm::vec3(0.0f, -0.70710676908493f, 0.70710676908493f),
glm::vec3(pos) / pos.w
);
- pos = orbit.Matrix(PI_2p0) * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f);
+ pos = orbit.Matrix(PI * 2.0) * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f);
AssertEqual(
"wrong position at t=360°",
glm::vec3(1.0f, 0.0f, 0.0f),
glm::vec3(pos) / pos.w
);
- pos = orbit.Matrix(PI_0p5) * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f);
+ pos = orbit.Matrix(PI * 0.5) * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f);
AssertEqual(
"wrong position at t=90°",
glm::vec3(0.0f, 1.0f, 0.0f),
glm::vec3(pos) / pos.w
);
- pos = orbit.Matrix(PI_1p5) * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f);
+ pos = orbit.Matrix(PI * 1.5) * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f);
AssertEqual(
"wrong position at t=270°",
glm::vec3(0.0f, -1.0f, 0.0f),
glm::vec3(pos) / pos.w
);
- pos = orbit.Matrix(PI_2p0) * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f);
+ pos = orbit.Matrix(PI * 2.0) * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f);
AssertEqual(
"wrong position at t=360°",
glm::vec3(0.70710676908493f, 0.0f, -0.70710676908493f),
glm::vec3(pos) / pos.w
);
- pos = orbit.Matrix(PI_0p5) * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f);
+ pos = orbit.Matrix(PI * 0.5) * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f);
AssertEqual(
"wrong position at t=90°",
glm::vec3(0.0f, 1.0f, 0.0f),
glm::vec3(pos) / pos.w
);
- pos = orbit.Matrix(PI_1p5) * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f);
+ pos = orbit.Matrix(PI * 1.5) * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f);
AssertEqual(
"wrong position at t=270°",
glm::vec3(0.0f, -1.0f, 0.0f),
glm::vec3(pos) / pos.w
);
- pos = orbit.Matrix(PI_2p0) * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f);
+ pos = orbit.Matrix(PI * 2.0) * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f);
AssertEqual(
"wrong position at t=360°",
glm::vec3(0.70710676908493f, 0.0f, 0.70710676908493f),
// at 90° position should be (0,0,sma) since the zero inclination
// reference plane is XZ and rotates counter-clockwise
- pos = orbit.Matrix(PI_0p5) * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f);
+ pos = orbit.Matrix(PI * 0.5) * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f);
AssertEqual(
"wrong position at t=90°",
glm::vec3(-0.70710676908493f, 0.0f, -0.70710676908493f),
);
// at 270° position should be (0,0,-sma)
- pos = orbit.Matrix(PI_1p5) * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f);
+ pos = orbit.Matrix(PI * 1.5) * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f);
AssertEqual(
"wrong position at t=270°",
glm::vec3(0.70710676908493f, 0.0f, 0.70710676908493f),
);
// at 360° position should be (sma,0,0), the initial position
- pos = orbit.Matrix(PI_2p0) * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f);
+ pos = orbit.Matrix(PI * 2.0) * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f);
AssertEqual(
"wrong position at t=360°",
glm::vec3(0.70710676908493f, 0.0f, -0.70710676908493f),
// at 90° position should be (0,0,sma) since the zero inclination
// reference plane is XZ and rotates counter-clockwise
- pos = orbit.InverseMatrix(PI_0p5) * glm::vec4(0.0f, 0.0f, -1.0f, 1.0f);
+ pos = orbit.InverseMatrix(PI * 0.5) * glm::vec4(0.0f, 0.0f, -1.0f, 1.0f);
AssertEqual(
"wrong position at t=90°",
glm::vec3(0.0f, 0.0f, 0.0f),
);
// at 270° position should be (0,0,-sma)
- pos = orbit.InverseMatrix(PI_1p5) * glm::vec4(0.0f, 0.0f, 1.0f, 1.0f);
+ pos = orbit.InverseMatrix(PI * 1.5) * glm::vec4(0.0f, 0.0f, 1.0f, 1.0f);
AssertEqual(
"wrong position at t=270°",
glm::vec3(0.0f, 0.0f, 0.0f),
);
// at 360° position should be (sma,0,0), the initial position
- pos = orbit.InverseMatrix(PI_2p0) * glm::vec4(1.0f, 0.0f, 0.0f, 1.0f);
+ pos = orbit.InverseMatrix(PI * 2.0) * glm::vec4(1.0f, 0.0f, 0.0f, 1.0f);
AssertEqual(
"wrong position at t=360°",
glm::vec3(0.0f, 0.0f, 0.0f),
// at 90° position should be (0,0,sma) since the zero inclination
// reference plane is XZ and rotates counter-clockwise
- pos = orbit.InverseMatrix(PI_0p5) * glm::vec4(0.0f, 0.0f, -2.0f, 1.0f);
+ pos = orbit.InverseMatrix(PI * 0.5) * glm::vec4(0.0f, 0.0f, -2.0f, 1.0f);
AssertEqual(
"wrong position at t=90°",
glm::vec3(0.0f, 0.0f, 0.0f),
);
// at 270° position should be (0,0,-sma)
- pos = orbit.InverseMatrix(PI_1p5) * glm::vec4(0.0f, 0.0f, 2.0f, 1.0f);
+ pos = orbit.InverseMatrix(PI * 1.5) * glm::vec4(0.0f, 0.0f, 2.0f, 1.0f);
AssertEqual(
"wrong position at t=270°",
glm::vec3(0.0f, 0.0f, 0.0f),
);
// at 360° position should be (sma,0,0), the initial position
- pos = orbit.InverseMatrix(PI_2p0) * glm::vec4(2.0f, 0.0f, 0.0f, 1.0f);
+ pos = orbit.InverseMatrix(PI * 2.0) * glm::vec4(2.0f, 0.0f, 0.0f, 1.0f);
AssertEqual(
"wrong position at t=360°",
glm::vec3(0.0f, 0.0f, 0.0f),
glm::vec3(pos) / pos.w
);
- pos = orbit.InverseMatrix(PI_0p5) * glm::vec4(-0.935130834579468f, 0.0f, -0.779740869998932f, 1.0f);
+ pos = orbit.InverseMatrix(PI * 0.5) * glm::vec4(-0.935130834579468f, 0.0f, -0.779740869998932f, 1.0f);
AssertEqual(
"wrong position at t=90°",
glm::vec3(0.0f, 0.0f, 0.0f),
glm::vec3(pos) / pos.w
);
- pos = orbit.InverseMatrix(PI_1p5) * glm::vec4(-0.935130834579468f, 0.0f, 0.779740869998932f, 1.0f);
+ pos = orbit.InverseMatrix(PI * 1.5) * glm::vec4(-0.935130834579468f, 0.0f, 0.779740869998932f, 1.0f);
AssertEqual(
"wrong position at t=270°",
glm::vec3(0.0f, 0.0f, 0.0f),
glm::vec3(pos) / pos.w
);
- pos = orbit.InverseMatrix(PI_2p0) * glm::vec4(0.5f, 0.0f, 0.0f, 1.0f);
+ pos = orbit.InverseMatrix(PI * 2.0) * glm::vec4(0.5f, 0.0f, 0.0f, 1.0f);
AssertEqual(
"wrong position at t=360°",
glm::vec3(0.0f, 0.0f, 0.0f),
glm::vec3(pos) / pos.w
);
- pos = orbit.InverseMatrix(PI_0p5) * glm::vec4(0.0f, 0.70710676908493f, -0.70710676908493f, 1.0f);
+ pos = orbit.InverseMatrix(PI * 0.5) * glm::vec4(0.0f, 0.70710676908493f, -0.70710676908493f, 1.0f);
AssertEqual(
"wrong position at t=90°",
glm::vec3(0.0f, 0.0f, 0.0f),
glm::vec3(pos) / pos.w
);
- pos = orbit.InverseMatrix(PI_1p5) * glm::vec4(0.0f, -0.70710676908493f, 0.70710676908493f, 1.0f);
+ pos = orbit.InverseMatrix(PI * 1.5) * glm::vec4(0.0f, -0.70710676908493f, 0.70710676908493f, 1.0f);
AssertEqual(
"wrong position at t=270°",
glm::vec3(0.0f, 0.0f, 0.0f),
glm::vec3(pos) / pos.w
);
- pos = orbit.InverseMatrix(PI_2p0) * glm::vec4(1.0f, 0.0f, 0.0f, 1.0f);
+ pos = orbit.InverseMatrix(PI * 2.0) * glm::vec4(1.0f, 0.0f, 0.0f, 1.0f);
AssertEqual(
"wrong position at t=360°",
glm::vec3(0.0f, 0.0f, 0.0f),
glm::vec3(pos) / pos.w
);
- pos = orbit.InverseMatrix(PI_0p5) * glm::vec4(0.0f, 1.0f, 0.0f, 1.0f);
+ pos = orbit.InverseMatrix(PI * 0.5) * glm::vec4(0.0f, 1.0f, 0.0f, 1.0f);
AssertEqual(
"wrong position at t=90°",
glm::vec3(0.0f, 0.0f, 0.0f),
glm::vec3(pos) / pos.w
);
- pos = orbit.InverseMatrix(PI_1p5) * glm::vec4(0.0f, -1.0f, 0.0f, 1.0f);
+ pos = orbit.InverseMatrix(PI * 1.5) * glm::vec4(0.0f, -1.0f, 0.0f, 1.0f);
AssertEqual(
"wrong position at t=270°",
glm::vec3(0.0f, 0.0f, 0.0f),
glm::vec3(pos) / pos.w
);
- pos = orbit.InverseMatrix(PI_2p0) * glm::vec4(0.70710676908493f, 0.0f, -0.70710676908493f, 1.0f);
+ pos = orbit.InverseMatrix(PI * 2.0) * glm::vec4(0.70710676908493f, 0.0f, -0.70710676908493f, 1.0f);
AssertEqual(
"wrong position at t=360°",
glm::vec3(0.0f, 0.0f, 0.0f),
glm::vec3(pos) / pos.w
);
- pos = orbit.InverseMatrix(PI_0p5) * glm::vec4(0.0f, 1.0f, 0.0f, 1.0f);
+ pos = orbit.InverseMatrix(PI * 0.5) * glm::vec4(0.0f, 1.0f, 0.0f, 1.0f);
AssertEqual(
"wrong position at t=90°",
glm::vec3(0.0f, 0.0f, 0.0f),
glm::vec3(pos) / pos.w
);
- pos = orbit.InverseMatrix(PI_1p5) * glm::vec4(0.0f, -1.0f, 0.0f, 1.0f);
+ pos = orbit.InverseMatrix(PI * 1.5) * glm::vec4(0.0f, -1.0f, 0.0f, 1.0f);
AssertEqual(
"wrong position at t=270°",
glm::vec3(0.0f, 0.0f, 0.0f),
glm::vec3(pos) / pos.w
);
- pos = orbit.InverseMatrix(PI_2p0) * glm::vec4(0.70710676908493f, 0.0f, 0.70710676908493f, 1.0f);
+ pos = orbit.InverseMatrix(PI * 2.0) * glm::vec4(0.70710676908493f, 0.0f, 0.70710676908493f, 1.0f);
AssertEqual(
"wrong position at t=360°",
glm::vec3(0.0f, 0.0f, 0.0f),
// at 90° position should be (0,0,sma) since the zero inclination
// reference plane is XZ and rotates counter-clockwise
- pos = orbit.InverseMatrix(PI_0p5) * glm::vec4(-0.70710676908493f, 0.0f, -0.70710676908493f, 1.0f);
+ pos = orbit.InverseMatrix(PI * 0.5) * glm::vec4(-0.70710676908493f, 0.0f, -0.70710676908493f, 1.0f);
AssertEqual(
"wrong position at t=90°",
glm::vec3(0.0f, 0.0f, 0.0f),
);
// at 270° position should be (0,0,-sma)
- pos = orbit.InverseMatrix(PI_1p5) * glm::vec4(0.70710676908493f, 0.0f, 0.70710676908493f, 1.0f);
+ pos = orbit.InverseMatrix(PI * 1.5) * glm::vec4(0.70710676908493f, 0.0f, 0.70710676908493f, 1.0f);
AssertEqual(
"wrong position at t=270°",
glm::vec3(0.0f, 0.0f, 0.0f),
);
// at 360° position should be (sma,0,0), the initial position
- pos = orbit.InverseMatrix(PI_2p0) * glm::vec4(0.70710676908493f, 0.0f, -0.70710676908493f, 1.0f);
+ pos = orbit.InverseMatrix(PI * 2.0) * glm::vec4(0.70710676908493f, 0.0f, -0.70710676908493f, 1.0f);
AssertEqual(
"wrong position at t=360°",
glm::vec3(0.0f, 0.0f, 0.0f),