Constructor and Description |
---|
LXProjection(LXModel model)
Constructs a projection view of the given model
|
Modifier and Type | Method and Description |
---|---|
LXProjection |
center()
Centers the projection, by translating it such that the origin (0, 0, 0)
becomes the center of the model
|
Iterator<LXVector> |
iterator() |
LXProjection |
reflectX()
Reflects the projection about the x-axis
|
LXProjection |
reflectY()
Reflects the projection about the y-axis
|
LXProjection |
reflectZ()
Reflects the projection about the z-axis
|
LXProjection |
reset()
Reset all points in the projection to the model
|
LXProjection |
rotate(float angle,
float l,
float m,
float n)
Rotates the projection about a vector
|
LXProjection |
rotateX(float angle)
Rotate about the x-axis
|
LXProjection |
rotateY(float angle)
Rotate about the x-axis
|
LXProjection |
rotateZ(float angle)
Rotate about the x-axis
|
LXProjection |
scale(float sx,
float sy,
float sz)
Scales the projection
|
LXProjection |
translate(float tx,
float ty,
float tz)
Translates the projection
|
LXProjection |
translateCenter(float tx,
float ty,
float tz)
Translates the model from its center, so (0, 0, 0) becomes (tx, ty, tz)
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public LXProjection(LXModel model)
model
- Modelpublic LXProjection reset()
public LXProjection scale(float sx, float sy, float sz)
sx
- x-factorsy
- y-factorsz
- z-factorpublic LXProjection translate(float tx, float ty, float tz)
tx
- x-translationty
- y-translationtz
- z-translationpublic LXProjection center()
public LXProjection translateCenter(float tx, float ty, float tz)
tx
- x-translationty
- y-translationtz
- z-translationpublic LXProjection reflectX()
public LXProjection reflectY()
public LXProjection reflectZ()
public LXProjection rotate(float angle, float l, float m, float n)
angle
- Angle to rotate by, in radiansl
- vector x-valuem
- vector y-valuen
- vector z-valuepublic LXProjection rotateX(float angle)
angle
- Angle in radianspublic LXProjection rotateY(float angle)
angle
- Angle in radianspublic LXProjection rotateZ(float angle)
angle
- Angle in radiansLX library by Mark C. Slee. © 2012-2020