Home
last modified time | relevance | path

Searched refs:SGVec3d (Results 1 – 25 of 207) sorted by relevance

123456789

/dports/games/flightgear/flightgear-2020.3.11/test_suite/unit_tests/FDM/
H A DtestAeroElement.cxx16 SGVec3d n = el->getNormal(); in testNormal()
28 SGVec3d cp = el->getCollocationPoint(); in testCollocationPoint()
40 SGVec3d mp = el->getBoundVortexMidPoint(); in testBoundVortexMidPoint()
52 SGVec3d v = el->getBoundVortex(); in testBoundVortex()
65 SGVec3d v = el->getInducedVelocity(mp); in testInducedVelocityOnBoundVortex()
77 SGVec3d cp = el->getCollocationPoint(); in testInducedVelocityOnCollocationPoint()
78 SGVec3d v = el->getInducedVelocity(cp); in testInducedVelocityOnCollocationPoint()
91 SGVec3d v = el->getInducedVelocity(mp+SGVec3d(-1000.,0.,0.)); in testInducedVelocityAtFarField()
104 SGVec3d v = el->getInducedVelocity(mp+SGVec3d(0.,0.,-0.5)); in testInducedVelocityAbove()
117 SGVec3d v = el->getInducedVelocity(mp+SGVec3d(0.0, 0.5, -1.0)); in testInducedVelocityAboveWithOffset()
[all …]
/dports/games/flightgear/flightgear-2020.3.11/utils/fgai/
H A Dfgai.cxx39 const SGVec3d& angularBodyVelocity = SGVec3d::zeros()) :
98 const SGVec3d& angularBodyVelocity = SGVec3d::zeros()) :
202 std::pair<SGVec3d, SGVec3d> velocity;
204 std::pair<SGVec3d, SGVec3d> torqueForce;
229 SGVec3d _position;
234 std::pair<SGVec3d, SGVec3d>
257 return std::pair<SGVec3d, SGVec3d>(torque, force);
386 const SGVec3d& angularBodyVelocity = SGVec3d::zeros()) : in Physics()
447 SGVec3d down = hl.backTransform(SGVec3d(0, 0, 1)); in init()
449 SGVec3d cartRwyStart = SGVec3d::fromGeod(rwyStart); in init()
[all …]
H A DAIPhysics.hxx30 AIPhysics(const SGLocationd& location, const SGVec3d& linearBodyVelocity = SGVec3d::zeros(),
31 const SGVec3d& angularBodyVelocity = SGVec3d::zeros());
40 const SGVec3d& getPosition() const in getPosition()
51 const SGVec3d& getLinearBodyVelocity() const in getLinearBodyVelocity()
53 const SGVec3d& getAngularBodyVelocity() const in getAngularBodyVelocity()
56 SGVec3d getLinearVelocity() const in getLinearVelocity()
60 SGVec3d getGeodVelocity() const in getGeodVelocity()
84 const SGVec3d& linearVelocity,
85 const SGVec3d& angularVelocity);
100 SGVec3d _linearBodyVelocity;
[all …]
H A DAIPhysics.cxx37 AIPhysics::AIPhysics(const SGLocationd& location, const SGVec3d& linearBodyVelocity, in AIPhysics()
38 const SGVec3d& angularBodyVelocity) : in AIPhysics()
59 const SGVec3d& linearAcceleration, in advanceByBodyAcceleration()
60 const SGVec3d& angularAcceleration) in advanceByBodyAcceleration()
63 SGVec3d linearVelocity = getLinearBodyVelocity(); in advanceByBodyAcceleration()
64 SGVec3d angularVelocity = getAngularBodyVelocity(); in advanceByBodyAcceleration()
75 const SGVec3d& linearVelocity, in advanceByBodyVelocity()
76 const SGVec3d& angularVelocity) in advanceByBodyVelocity()
99 SGVec3d positionDifference = location.getPosition() - _location.getPosition(); in advanceToLocation()
/dports/games/flightgear/flightgear-2020.3.11/src/FDM/AIWake/
H A DAeroElement.hxx31 AeroElement(const SGVec3d& n1, const SGVec3d& n2, const SGVec3d& n3,
32 const SGVec3d& n4);
33 const SGVec3d& getNormal(void) const { return normal; } in getNormal()
35 SGVec3d getBoundVortex(void) const { return p2 - p1; } in getBoundVortex()
36 SGVec3d getBoundVortexMidPoint(void) const { return 0.5*(p1+p2); } in getBoundVortexMidPoint()
37 SGVec3d getInducedVelocity(const SGVec3d& p) const;
39 SGVec3d vortexInducedVel(const SGVec3d& p, const SGVec3d& n1,
40 const SGVec3d& n2) const;
41 SGVec3d semiInfVortexInducedVel(const SGVec3d& point, const SGVec3d& vEnd,
42 const SGVec3d& vDir) const;
[all …]
H A DAeroElement.cxx29 AeroElement::AeroElement(const SGVec3d& n1, const SGVec3d& n2, in AeroElement()
30 const SGVec3d& n3, const SGVec3d& n4) in AeroElement()
38 SGVec3d AeroElement::vortexInducedVel(const SGVec3d& p, const SGVec3d& n1, in vortexInducedVel()
42 SGVec3d v = cross(r1, r2); in vortexInducedVel()
48 return SGVec3d::zeros(); in vortexInducedVel()
57 SGVec3d AeroElement::semiInfVortexInducedVel(const SGVec3d& point, in semiInfVortexInducedVel()
61 SGVec3d r = point-vEnd; in semiInfVortexInducedVel()
66 return SGVec3d::zeros(); in semiInfVortexInducedVel()
68 SGVec3d v = cross(r, vDir); in semiInfVortexInducedVel()
74 SGVec3d AeroElement::getInducedVelocity(const SGVec3d& p) const in getInducedVelocity()
[all …]
H A DAircraftMesh.cxx43 collPt.resize(nelm, SGVec3d::zeros()); in AircraftMesh()
44 midPt.resize(nelm, SGVec3d::zeros()); in AircraftMesh()
47 void AircraftMesh::setPosition(const SGVec3d& _pos, const SGQuatd& orient) in setPosition()
49 SGVec3d pos = _pos * SG_METER_TO_FEET; in setPosition()
56 SGVec3d pt = elements[i]->getCollocationPoint(); in setPosition()
63 SGVec3d AircraftMesh::GetForce(const AIWakeGroup& wg, const SGVec3d& vel, in GetForce()
79 SGVec3d f(0.,0.,0.); in GetForce()
80 moment = SGVec3d::zeros(); in GetForce()
83 SGVec3d mp = elements[i]->getBoundVortexMidPoint(); in GetForce()
84 SGVec3d v = Te2b.transform(wg.getInducedVelocityAt(midPt[i])); in GetForce()
[all …]
H A DWakeMesh.cxx42 elements.push_back(new AeroElement(SGVec3d(-chord, y1, 0.), in WakeMesh()
43 SGVec3d(0., y1, 0.), in WakeMesh()
44 SGVec3d(0., y2, 0.), in WakeMesh()
45 SGVec3d(-chord, y2, 0.))); in WakeMesh()
53 SGVec3d normal = elements[i]->getNormal(); in WakeMesh()
54 SGVec3d collPt = elements[i]->getCollocationPoint(); in WakeMesh()
84 SGVec3d f(0.,0.,0.); in computeAoA()
85 SGVec3d v(-vel, 0.0, 0.0); in computeAoA()
98 SGVec3d WakeMesh::getInducedVelocityAt(const SGVec3d& at) const in getInducedVelocityAt()
100 SGVec3d v(0., 0., 0.); in getInducedVelocityAt()
H A DAircraftMesh.hxx36 void setPosition(const SGVec3d& pos, const SGQuatd& orient);
37 SGVec3d GetForce(const AIWakeGroup& wg, const SGVec3d& vel, double rho);
38 const SGVec3d& GetMoment(void) const { return moment; }; in GetMoment()
43 std::vector<SGVec3d> collPt, midPt;
45 SGVec3d moment;
/dports/games/flightgear/flightgear-2020.3.11/src/FDM/
H A Dgroundcache.hxx58 const SGVec3d& pt, double rad);
66 const SGVec3d& get_down() const in get_down()
81 double get_cat(double t, const SGVec3d& pt,
82 SGVec3d end[2], SGVec3d vel[2]);
90 bool get_agl(double t, const SGVec3d& pt, SGVec3d& contact,
91 SGVec3d& normal, SGVec3d& linearVel, SGVec3d& angularVel,
96 SGVec3d& contact, SGVec3d& linearVel, SGVec3d& angularVel,
105 bool caught_wire(double t, const SGVec3d pt[4]);
108 bool get_wire_ends(double t, SGVec3d end[2], SGVec3d vel[2]);
136 SGVec3d reference_wgs84_point;
[all …]
H A Dgroundcache.cxx77 CacheFill(const SGVec3d& center, const SGVec3d& down, const double& radius, in CacheFill()
282 SGVec3d _center;
283 SGVec3d _down;
289 SGVec3d _sceneryHit;
500 SGVec3d referencePoint = _bodyToWorld.xformPt(SGVec3d::zeros()); in apply()
672 SGVec3d end[2], SGVec3d vel[2]) in get_cat()
701 FGGroundCache::get_agl(double t, const SGVec3d& pt, SGVec3d& contact, in get_agl()
702 SGVec3d& normal, SGVec3d& linearVel, SGVec3d& angularVel, in get_agl()
754 SGVec3d& contact, SGVec3d& linearVel, in get_nearest()
940 _lineSegment(SGVec3d::zeros(), SGVec3d::zeros()), in WireFinder()
[all …]
H A Dflight.cxx666 SGVec3d pt_ft = SG_FEET_TO_METER*SGVec3d(pt); in prepare_ground_cache_ft()
674 SGVec3d _pt; in is_valid_m()
683 SGVec3d _pt; in is_valid_ft()
694 SGVec3d _end[2], _vel[2]; in get_cat_m()
708 SGVec3d pt_m = SG_FEET_TO_METER*SGVec3d(pt); in get_cat_ft()
744 SGVec3d pt_m = SGVec3d(pt) - max_altoff*ground_cache.get_down(); in get_agl_m()
768 SGVec3d pt_m = SGVec3d(pt) - max_altoff*ground_cache.get_down(); in get_agl_ft()
836 SGVec3d pos = SGVec3d::fromGeod(geod); in get_groundlevel_m()
839 SGVec3d cpos; in get_groundlevel_m()
890 SGVec3d pt_m[4]; in caught_wire_m()
[all …]
/dports/devel/simgear/simgear-2020.3.11/simgear/bvh/
H A Dbvhtest.cxx62 SGLineSegmentd lineSegment(SGVec3d(0, 0, -1), SGVec3d(0, 0, 1)); in testLineIntersections()
68 if (!equivalent(lineSegmentVisitor.getPoint(), SGVec3d(0, 0, 0))) in testLineIntersections()
72 SGVec3d position(1000, 1000, 1000); in testLineIntersections()
87 if (!equivalent(lineSegmentVisitor.getPoint(), SGVec3d(0, 0, 0))) in testLineIntersections()
92 transform3->setLinearVelocity(SGVec3d(0, 0, 1)); in testLineIntersections()
93 transform3->setAngularVelocity(SGVec3d(1, 0, 0)); in testLineIntersections()
101 if (!equivalent(lineSegmentVisitor.getPoint(), SGVec3d(0, 0, 0))) in testLineIntersections()
104 SGVec3d(0, 1, 1))) in testLineIntersections()
107 SGVec3d(1, 0, 0))) in testLineIntersections()
122 SGSphered sphere(SGVec3d(0, 0, -1), 2); in testNearestPoint()
[all …]
H A DBVHTransform.hxx42 SGVec3d ptToWorld(const SGVec3d& point) const in ptToWorld()
44 SGVec3d ptToLocal(const SGVec3d& point) const in ptToLocal()
47 SGVec3d vecToWorld(const SGVec3d& vec) const in vecToWorld()
49 SGVec3d vecToLocal(const SGVec3d& vec) const in vecToLocal()
59 SGVec3d center = ptToWorld(sphere.getCenter()); in sphereToWorld()
65 SGVec3d center = ptToLocal(sphere.getCenter()); in sphereToLocal()
H A DBVHLineSegmentVisitor.hxx50 SGVec3d getPoint() const in getPoint()
52 const SGVec3d& getNormal() const in getNormal()
54 const SGVec3d& getLinearVelocity() const in getLinearVelocity()
56 const SGVec3d& getAngularVelocity() const in getAngularVelocity()
74 void setLineSegmentEnd(const SGVec3d& end) in setLineSegmentEnd()
89 SGVec3d _normal;
90 SGVec3d _linearVelocity;
91 SGVec3d _angularVelocity;
H A DBVHMotionTransform.hxx38 void setLinearVelocity(const SGVec3d& linearVelocity) in setLinearVelocity()
40 const SGVec3d& getLinearVelocity() const in getLinearVelocity()
43 void setAngularVelocity(const SGVec3d& angularVelocity) in setAngularVelocity()
45 const SGVec3d& getAngularVelocity() const in getAngularVelocity()
89 SGVec3d getLinearVelocityAt(const SGVec3d& reference) const in getLinearVelocityAt()
95 SGVec3d center = matrix.xformPt(sphere.getCenter()); in sphereToLocal()
114 SGVec3d _linearVelocity;
115 SGVec3d _angularVelocity;
H A DBVHNearestPointVisitor.hxx96 SGVec3d localCenter = _sphere.getCenter(); in apply()
126 SGVec3d closest(closestPoint(node.getTriangle(data), center)); in apply()
130 _linearVelocity = SGVec3d::zeros(); in apply()
131 _angularVelocity = SGVec3d::zeros(); in apply()
144 const SGVec3d& getPoint() const in getPoint()
146 const SGVec3d& getLinearVelocity() const in getLinearVelocity()
148 const SGVec3d& getAngularVelocity() const in getAngularVelocity()
162 SGVec3d _point;
163 SGVec3d _linearVelocity;
164 SGVec3d _angularVelocity;
H A DBVHMotionTransform.cxx95 SGVec3d centerStart = toWorldStart.xformPt(sphere.getCenter()); in computeBoundingSphere()
97 SGVec3d centerEnd = toWorldEnd.xformPt(sphere.getCenter()); in computeBoundingSphere()
109 double r = norm(_toWorldReference.xformVec(SGVec3d(1, 0, 0))); in updateAmplificationFactors()
110 r = SGMiscd::max(r, norm(_toWorldReference.xformVec(SGVec3d(0, 1, 0)))); in updateAmplificationFactors()
111 r = SGMiscd::max(r, norm(_toWorldReference.xformVec(SGVec3d(0, 0, 1)))); in updateAmplificationFactors()
114 r = norm(_toLocalReference.xformVec(SGVec3d(1, 0, 0))); in updateAmplificationFactors()
115 r = SGMiscd::max(r, norm(_toLocalReference.xformVec(SGVec3d(0, 1, 0)))); in updateAmplificationFactors()
116 r = SGMiscd::max(r, norm(_toLocalReference.xformVec(SGVec3d(0, 0, 1)))); in updateAmplificationFactors()
/dports/devel/simgear/simgear-2020.3.11/simgear/hla/
H A DHLALocation.hxx36 virtual SGVec3d getCartPosition() const = 0;
37 virtual void setCartPosition(const SGVec3d&) = 0;
42 virtual SGVec3d getAngularBodyVelocity() const = 0;
43 virtual void setAngularBodyVelocity(const SGVec3d&) = 0;
45 virtual SGVec3d getLinearBodyVelocity() const = 0;
46 virtual void setLinearBodyVelocity(const SGVec3d&) = 0;
68 virtual SGVec3d getCartPosition() const;
69 virtual void setCartPosition(const SGVec3d& position);
74 virtual SGVec3d getAngularBodyVelocity() const;
77 virtual SGVec3d getLinearBodyVelocity() const;
[all …]
H A DHLALocation.cxx58 SGVec3d
85 SGVec3d
98 SGVec3d
286 _cartPosition(SGVec3d::zeros()), in Location()
288 _cartBodyVelocity(SGVec3d::zeros()), in Location()
290 _geodEulerRad(SGVec3d::zeros()), in Location()
313 virtual SGVec3d getCartPosition() const in getCartPosition()
324 { return SGVec3d::zeros(); } in getAngularBodyVelocity()
544 mutable SGVec3d _cartPosition;
546 mutable SGVec3d _cartBodyVelocity;
[all …]
/dports/devel/simgear/simgear-2020.3.11/simgear/scene/model/
H A Danimation.hxx73 const SGVec3d& def = SGVec3d::zeros() ) const;
75 SGVec3d readVec3( const std::string& name,
77 const SGVec3d& def = SGVec3d::zeros() ) const;
149 SGVec3d _axis;
165 SGVec3d _axis;
166 SGVec3d _center;
184 SGVec3d _initialValue;
185 SGVec3d _center;
358 SGVec3d _position;
359 SGVec3d _direction;
[all …]
H A DSGRotateTransform.hxx38 void setCenter(const SGVec3d& center) in setCenter()
40 const SGVec3d& getCenter() const in getCenter()
45 void setAxis(const SGVec3d& axis) in setAxis()
47 const SGVec3d& getAxis() const in getAxis()
69 const SGVec3d &center, const SGVec3d &axis);
71 SGVec3d _center;
72 SGVec3d _axis;
H A DSGScaleTransform.hxx38 void setCenter(const SGVec3d& center) in setCenter()
40 const SGVec3d& getCenter() const in getCenter()
43 void setScaleFactor(const SGVec3d& scaleFactor) in setScaleFactor()
59 _scaleFactor = SGVec3d(scaleFactor, scaleFactor, scaleFactor); in setScaleFactor()
61 const SGVec3d& getScaleFactor() const in getScaleFactor()
72 SGVec3d _center;
73 SGVec3d _scaleFactor;
/dports/games/flightgear/flightgear-2020.3.11/src/Navaids/
H A DPositionedOctree.hxx145 bool contains(const SGVec3d& aPos) const in contains()
150 double distToNearest(const SGVec3d& aPos) const in distToNearest()
155 virtual void visit(const SGVec3d& aPos, double aCutoff,
159 virtual Leaf* findLeafForPos(const SGVec3d& aPos) const = 0;
161 virtual void visitForLines(const SGVec3d& aPos, double aCutoff,
186 virtual void visit(const SGVec3d& aPos, double aCutoff,
190 virtual Leaf* findLeafForPos(const SGVec3d&) const in findLeafForPos()
211 virtual void visit(const SGVec3d& aPos, double aCutoff,
215 virtual Leaf* findLeafForPos(const SGVec3d& aPos) const in findLeafForPos()
223 virtual void visitForLines(const SGVec3d& aPos, double aCutoff,
[all …]
/dports/devel/simgear/simgear-2020.3.11/simgear/scene/util/
H A DSGUpdateVisitor.hxx39 void setViewData(const SGVec3d& globalEyePos, in setViewData()
48 mHorizLocalEast = mGlobalHorizLocalOr.backTransform(SGVec3d(0, 1, 0)); in setViewData()
49 mHorizLocalDown = mGlobalHorizLocalOr.backTransform(SGVec3d(0, 0, 1)); in setViewData()
96 const SGVec3d& getGlobalEyePos() const in getGlobalEyePos()
104 const SGVec3d& getHorizLocalNorth() const in getHorizLocalNorth()
106 const SGVec3d& getHorizLocalEast() const in getHorizLocalEast()
108 const SGVec3d& getHorizLocalDown() const in getHorizLocalDown()
204 SGVec3d mGlobalEyePos;
207 SGVec3d mHorizLocalNorth;
208 SGVec3d mHorizLocalEast;
[all …]

123456789