MCPcopy Create free account
hub / github.com/brenocq/implot3d / Cross

Method Cross

implot3d.cpp:3482–3484  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3480double ImPlot3DPoint::Dot(const ImPlot3DPoint& rhs) const { return x * rhs.x + y * rhs.y + z * rhs.z; }
3481
3482ImPlot3DPoint ImPlot3DPoint::Cross(const ImPlot3DPoint& rhs) const {
3483 return ImPlot3DPoint(y * rhs.z - z * rhs.y, z * rhs.x - x * rhs.z, x * rhs.y - y * rhs.x);
3484}
3485
3486double ImPlot3DPoint::Length() const { return sqrt(x * x + y * y + z * z); }
3487

Callers 2

FromTwoVectorsMethod · 0.80
operator*Method · 0.80

Calls 1

ImPlot3DPointClass · 0.85

Tested by

no test coverage detected