Modifier and Type | Field and Description |
---|---|
static String |
NAME
The name that this relation goes by in text form.
|
Constructor and Description |
---|
HeightRatioRelation() |
Modifier and Type | Method and Description |
---|---|
double |
apply(SceneElement e1,
SceneElement e2)
Calculate the ratio of the height of the first element to the
height of the second.
|
String |
getName()
The name of this relation.
|
String |
toString()
Print out the contents of this relation.
|
String |
toString(String e1Name,
String e2Name)
Pretty print the relation in the grammar format.
|
public static String NAME
public double apply(SceneElement e1, SceneElement e2)
public String getName()
public String toString(String e1Name, String e2Name)
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.