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

Method GetViewScale

implot3d.cpp:3993–3995  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3991}
3992
3993float ImPlot3DPlot::GetViewScale() const {
3994 return ImMin(PlotRect.GetWidth(), PlotRect.GetHeight()) / 1.8f * ImPlot3D::GImPlot3D->Style.ViewScaleFactor;
3995}
3996
3997ImPlot3DPoint ImPlot3DPlot::GetBoxScale() const { return ImPlot3DPoint(Axes[0].NDCSize(), Axes[1].NDCSize(), Axes[2].NDCSize()); }
3998

Callers 5

NDCToPixelsFunction · 0.80
PixelsToNDCRayFunction · 0.80
HandleInputFunction · 0.80
SetupLockFunction · 0.80
ShowMetricsWindowMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected