Modifier and Type | Field and Description |
---|---|
static String |
NAME
The name that this relation goes by in text form.
|
Constructor and Description |
---|
AreaRatioRelation() |
Modifier and Type | Method and Description |
---|---|
double |
apply(SceneElement e1,
SceneElement e2)
Calculate the ratio of the area of e1 over
the area of e2.
|
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.