public class LXPoint extends Object
index
field refers to this points position in that buffer.
Generally speaking, point geometry should be treated as immutable.
Direct modifications to the values are permitted, but will not
trigger updates to the geometry of a containing LXModel
.Modifier and Type | Field and Description |
---|---|
float |
azimuth
Angle of this point about the origin in the x-z plane
(right-handed angle of rotation about the Y-axis)
|
float |
elevation
Angle of this point between the y-value and the x-z plane
|
int |
index
Index of this point into color buffer
|
float |
r
Radius of this point from the origin (0, 0, 0) in 3 dimensions
|
float |
rc
Radius of this point from the center of the global model
|
float |
rcn
Normalized position of point in radial space from center of model,
0 is center, 1 is max radius from center
|
float |
rn
Normalized position of point in radial space (0-1), 0 is origin, 1 is max radius
|
float |
rxy
Radius of this point from origin (0, 0) in the x-y plane
|
float |
rxz
Radius of this point from origin (0, 0) in the x-z plane
|
float |
theta
Angle of this point about the origin (0, 0) in the x-y plane
|
float |
x
X coordinate of this point (absolute)
|
float |
xn
Normalized position of point in x-space (0-1);
|
float |
y
Y coordinate of this point (absolute)
|
float |
yn
Normalized position of point in y-space (0-1);
|
float |
z
Z coordinate of this point (absolute)
|
float |
zn
Normalized position of point in z-space (0-1);
|
Constructor and Description |
---|
LXPoint()
Construct an empty point, value 0, 0, 0
|
LXPoint(double x,
double y,
double z)
Construct a point in 3-d space
|
LXPoint(float x,
float y)
Construct a point in 2-d space, z will be 0
|
LXPoint(float x,
float y,
float z)
Construct a point in 3-d space
|
LXPoint(LXPoint that)
Construct a copy of another point
|
LXPoint(LXTransform transform)
Construct a point from transform
|
LXPoint(LXVector v)
Construct a point in 3-d space based upon a vector
|
Modifier and Type | Method and Description |
---|---|
LXPoint |
multiply(LXMatrix matrix)
Multiplies the points coordinates by the given transformation matrix
|
protected LXPoint |
set()
Updates the point's meta-coordinates, based upon the x y z values.
|
LXPoint |
set(float x,
float y,
float z)
Updates this point to a new x-y-z position
|
LXPoint |
set(LXMatrix matrix)
Set the x, y, and z values based upon the position of a transform matrix
|
LXPoint |
set(LXMatrix matrix,
LXPoint that)
Set the x, y, and z values based upon another point multiplied by a transform matrix
|
LXPoint |
set(LXMatrix matrix,
LXVector that)
Set the x, y, and z values based upon another point multiplied by a transform matrix
|
LXPoint |
set(LXPoint that)
Sets the values of this point based upon another point
|
LXPoint |
set(LXTransform transform)
Set the x, y, and z values based upon the position of the transform
|
LXPoint |
setX(float x)
Sets the X coordinate of the point
|
LXPoint |
setY(float y)
Sets the Y coordinate of the point
|
LXPoint |
setZ(float z)
Sets the Z coordinate of the point
|
public float x
public float y
public float z
public float r
public float rc
public float rxy
public float rxz
public float theta
public float azimuth
public float elevation
public float xn
public float yn
public float zn
public float rn
public float rcn
public int index
public LXPoint()
public LXPoint(float x, float y)
x
- X-coordinatey
- Y-coordinatepublic LXPoint(float x, float y, float z)
x
- X-coordinatey
- Y-coordinatez
- Z-coordinatepublic LXPoint(LXPoint that)
that
- Point to copypublic LXPoint(double x, double y, double z)
x
- X-coordinatey
- Y-coordinatez
- Z-coordinatepublic LXPoint(LXVector v)
v
- LXVectorpublic LXPoint(LXTransform transform)
transform
- LXTransform stackpublic LXPoint set(float x, float y, float z)
x
- X-positiony
- Y-positionz
- Z-positionpublic LXPoint set(LXTransform transform)
transform
- Transform objectpublic LXPoint set(LXMatrix matrix)
matrix
- Transform matrix objectpublic LXPoint set(LXMatrix matrix, LXPoint that)
matrix
- Transform matrix objectthat
- Another point objectpublic LXPoint set(LXMatrix matrix, LXVector that)
matrix
- Transform matrix objectthat
- Another vector objectpublic LXPoint set(LXPoint that)
that
- Other point to copy into this pointpublic LXPoint setX(float x)
x
- X-coordinatepublic LXPoint setY(float y)
y
- Y-coordinatepublic LXPoint setZ(float z)
z
- Z-coordinateprotected LXPoint set()
LX library by Mark C. Slee. © 2012-2020