MCPcopy Create free account
hub / github.com/rambaut/figtree / getTime

Method getTime

src/figtree/treeviewer/TimeScale.java:62–65  ·  view source on GitHub ↗
(double length, RootedTree tree)

Source from the content-addressed store, hash-verified

60 }
61
62 public double getTime(double length, RootedTree tree) {
63
64 return (length * getScaleFactor(tree));
65 }
66
67 public double getHeight(double age, RootedTree tree) {
68 return (age - offsetAge) / getScaleFactor(tree);

Callers 1

getLabelMethod · 0.95

Calls 1

getScaleFactorMethod · 0.95

Tested by

no test coverage detected