IAP GITLAB

Skip to content
Snippets Groups Projects
Commit dd4b35e5 authored by Maximilian Reininghaus's avatar Maximilian Reininghaus :vulcan:
Browse files

fixed Helix

parent 135ade86
No related branches found
No related tags found
No related merge requests found
#include <Units/PhysicalUnits.h>
#include <Geometry/Vector.h>
#include <Geometry/CoordinateSystem.h>
#include <Geometry/Helix.h>
#include <Geometry/Point.h>
#include <Geometry/Helix.h>
#include <cstdlib>
#include <iostream>
#include <array>
......
......@@ -9,7 +9,7 @@
class Helix // TODO: inherit from to-be-implemented "Trajectory"
{
using SpeedVec = Vector<Speed>;
using SpeedVec = Vector<Speed::dimension_type>;
Point const r0;
Frequency const omegaC;
......@@ -21,7 +21,7 @@ class Helix // TODO: inherit from to-be-implemented "Trajectory"
public:
Helix(Point const pR0, phys::units::quantity<phys::units::frequency_d> pOmegaC,
SpeedVec const pvPar, SpeedVec const pvPerp) :
r0(pR0), omegaC(pOmegaC), vPar(pvPar), vPerp(pvPerp), uPerp(vPerp.cross(vPar.normalized()),
r0(pR0), omegaC(pOmegaC), vPar(pvPar), vPerp(pvPerp), uPerp(vPerp.cross(vPar.normalized())),
radius(pvPar.norm() / abs(pOmegaC))
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment