public class Node3D extends Object
Modifier and Type | Field and Description |
---|---|
int |
index |
Constructor and Description |
---|
Node3D(double[] data,
int index) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
double[] |
getCoordinates()
Creates a double[] with the position of this node.
|
double |
getGamma(double gamma)
Gamma affects how much the node moves.
|
int |
getIndex() |
int |
hashCode() |
void |
setBackingData(double[] data)
Sets the position array that this node uses to back its data.
|
void |
setGammaFactor(double factor)
This determines how much this node moves compared to the rest of the mesh.
|
void |
setPosition(double[] pos)
Updates the array backing this position.
|
public int getIndex()
public double[] getCoordinates()
public void setPosition(double[] pos)
pos
- public void setBackingData(double[] data)
data
- the array containing the position information. This array should contain all of the positions for
all of the Node3D in the same mesh.public double getGamma(double gamma)
gamma
- public void setGammaFactor(double factor)
factor
- Copyright © 2013–2022 Francis Crick Institute. All rights reserved.