public enum Direction extends Enum<Direction>
Mirror
operation, and used by the
Slicer
as well.Enum Constant and Description |
---|
X
X direction.
|
Y
Y direction.
|
Z
z direction.
|
Modifier and Type | Method and Description |
---|---|
Coords3d |
getCoords()
Get the
Coords3d representation of this direction. |
Abstract3dModel |
moveTo(Abstract3dModel model,
Abstract3dModel alignTo,
AlignType side)
Move the
model to the side of alignTo determined by this direction and the
given side . |
static Direction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Direction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Direction X
public static final Direction Y
public static final Direction Z
public static Direction[] values()
for (Direction c : Direction.values()) System.out.println(c);
public static Direction valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Coords3d getCoords()
Coords3d
representation of this direction.Coords3d
representation of this directionpublic Abstract3dModel moveTo(Abstract3dModel model, Abstract3dModel alignTo, AlignType side)
model
to the side of alignTo
determined by this direction and the
given side
.model
- the model to be alignedalignTo
- the model align toside
- the side of the alignment - MIN or MAX is the most commonly used and NONE does nothingmodel
, but aligned to alignTo
Copyright © 2014–2020, Printing in 3D. All rights reserved.