public class Point extends Object
Local coordinates
are thought to be immutable, application
of a model changes the world coordinates
of the point.Constructor and Description |
---|
Point(float[] l)
Constructor
Sets
l to the given float[] reference. |
Modifier and Type | Method and Description |
---|---|
void |
apply(Model model)
|
void |
apply(Model model,
float amount)
|
void |
applyInverse(InvertibleModel model)
Apply the inverse of a
InvertibleModel to the Point . |
Point |
clone()
Clone this
Point instance. |
static float |
distance(Point p1,
Point p2)
Estimate the Euclidean distance of two
Points in the world. |
float[] |
getL() |
float[] |
getW() |
static float |
squareDistance(Point p1,
Point p2)
Estimate the square distance of two
Points in the world. |
public final float[] getW()
public final float[] getL()
public final void apply(Model model)
model
- public final void apply(Model model, float amount)
Model
to the Point
by a given amount.
Transfers the local coordinates
to new
world coordinates
.model
- amount
- 0.0 -> no application, 1.0 -> full applicationpublic final void applyInverse(InvertibleModel model) throws NoninvertibleModelException
InvertibleModel
to the Point
.
Transfers the local coordinates
to new
world coordinates
.model
- NoninvertibleModelException
public static final float squareDistance(Point p1, Point p2)
Points
in the world.p1
- p2
- public static final float distance(Point p1, Point p2)
Points
in the world.p1
- p2
- Copyright © 2015–2021 Fiji. All rights reserved.