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

Method GetLineRotation

src/visual_tool.cpp:424–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

422}
423
424void VisualToolBase::GetLineRotation(AssDialogue *diag, float &rx, float &ry, float &rz) {
425 rx = ry = rz = 0.f;
426
427 if (AssStyle *style = c->ass->GetStyle(diag->Style))
428 rz = style->angle;
429
430 auto blocks = diag->ParseTags();
431
432 if (param_vec tag = find_tag(blocks, "\\frx"))
433 rx = tag->front().Get(rx);
434 if (param_vec tag = find_tag(blocks, "\\fry"))
435 ry = tag->front().Get(ry);
436 if (param_vec tag = find_tag(blocks, "\\frz"))
437 rz = tag->front().Get(rz);
438 else if ((tag = find_tag(blocks, "\\fr")))
439 rz = tag->front().Get(rz);
440}
441
442void VisualToolBase::GetLineShear(AssDialogue *diag, float& fax, float& fay) {
443 fax = fay = 0.f;

Callers

nothing calls this directly

Calls 4

find_tagFunction · 0.85
GetStyleMethod · 0.45
ParseTagsMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected