public class Angle extends NamedEntity implements Comparable<Angle>
Angle
is a
NamedEntity
that may have a rotation axis and angle.Modifier | Constructor and Description |
---|---|
protected |
Angle() |
|
Angle(int id) |
|
Angle(int id,
String name) |
|
Angle(int id,
String name,
double rotationAngleDegrees,
double[] rotationAxis) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Angle o)
Compares the
ids . |
int |
getId()
Get the unique id of this angle.
|
String |
getName()
Get the name of this angle.
|
double |
getRotationAngleDegrees()
Get the approximate rotation angle (as defined by the microscope meta-data).
|
double[] |
getRotationAxis()
Get the the approximate rotation axis (as defined by the microscope meta-data).
|
boolean |
hasRotation()
Is the approximate rotation defined?
|
void |
setName(String name)
Set the name of this angle.
|
void |
setRotation(double[] axis,
double degrees)
Set the approximate rotation angle and axis (as defined by the microscope meta-data).
|
public Angle(int id, String name, double rotationAngleDegrees, double[] rotationAxis)
public Angle(int id, String name)
public Angle(int id)
protected Angle()
public int getId()
public String getName()
getName
in class NamedEntity
public void setName(String name)
setName
in class NamedEntity
public boolean hasRotation()
public double[] getRotationAxis()
public double getRotationAngleDegrees()
Double.NaN
if rotation is undefined.public void setRotation(double[] axis, double degrees)
axis
- degrees
- public int compareTo(Angle o)
ids
.compareTo
in interface Comparable<Angle>
Copyright © 2015–2021 Fiji. All rights reserved.