MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / getAngle

Function getAngle

src/utilities/geometry/Geometry.cpp:380–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

378}
379
380double getAngle(const Vector3d& vector1, const Vector3d& vector2) {
381 Vector3d working1(vector1);
382 working1.normalize();
383 Vector3d working2(vector2);
384 working2.normalize();
385 return acos(working1.dot(working2));
386}
387
388bool circularEqual(const Point3dVector& points1, const Point3dVector& points2, double tol) {
389 const size_t N = points1.size();

Callers 9

operator==Method · 0.85
aimAtMethod · 0.85
aimAtMethod · 0.85
tiltMethod · 0.85
azimuthMethod · 0.85
findPlanarSurfacesMethod · 0.85
translateSurfaceMethod · 0.85
translateSubSurfaceMethod · 0.85

Calls 2

dotMethod · 0.80
normalizeMethod · 0.45

Tested by

no test coverage detected