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

Method cross

src/utilities/geometry/Vector3d.cpp:151–156  ·  view source on GitHub ↗

cross product with another Vector3d

Source from the content-addressed store, hash-verified

149
150/// cross product with another Vector3d
151Vector3d Vector3d::cross(const Vector3d& other) const {
152 double newX = (y() * other.z() - z() * other.y());
153 double newY = (z() * other.x() - x() * other.z());
154 double newZ = (x() * other.y() - y() * other.x());
155 return {newX, newY, newZ};
156}
157
158/// get the Vector directly
159Vector Vector3d::vector() const {

Callers 10

aimAtMethod · 0.80
createDoorSubsurfaceMethod · 0.80
aimAtMethod · 0.80
isConvexMethod · 0.80
makeGeometriesMethod · 0.80
alignZPrimeMethod · 0.80
getNewellVectorFunction · 0.80
removeCollinearLegacyFunction · 0.80
PlaneMethod · 0.80

Calls 6

yFunction · 0.50
zFunction · 0.50
xFunction · 0.50
zMethod · 0.45
yMethod · 0.45
xMethod · 0.45

Tested by

no test coverage detected