MCPcopy Create free account
hub / github.com/TypesettingTools/Aegisub / SingleAxis

Method SingleAxis

src/vector2d.cpp:59–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59Vector2D Vector2D::SingleAxis() const {
60 if (std::abs(x) < std::abs(y))
61 return Vector2D(0, y);
62 else
63 return Vector2D(x, 0);
64}
65
66Vector2D Vector2D::Max(Vector2D param) const {
67 return Vector2D(std::max(x, param.x), std::max(y, param.y));

Callers 3

UpdateDragMethod · 0.80
UpdateHoldMethod · 0.80
UpdateHoldMethod · 0.80

Calls 1

Vector2DClass · 0.85

Tested by

no test coverage detected