Modifier and Type | Field and Description |
---|---|
private Point3DFloat |
Plane3DFloat.normal
The normalized normal vector.
|
Point3DFloat |
LineSegment3DFloat.p1
The endpoints of the line.
|
Point3DFloat |
LineSegment3DFloat.p2
The endpoints of the line.
|
Point3DFloat[] |
Triangle3DFloat.vertex
An array of 3 vertices.
|
Modifier and Type | Method and Description |
---|---|
Point3DFloat |
Point3DFloat.add(Point3DFloat p2)
Constructs a new Point3DFloat where the components of p2 are added to
this point.
|
static Point3DFloat |
Point3DFloat.add(Point3DFloat p1,
Point3DFloat p2)
Constructs a new Point3DFloat where the components are added to
each other.
|
static Point3DFloat |
Point3DFloat.altAzToXYZ(double r,
double alt,
double az,
double cx,
double cy,
double cz,
Point3DFloat out)
Transforms altAz coordinates r, alt, az into cartesian coordinates
x, y, z.
|
static Point3DFloat |
Point3DFloat.altAzToXYZ(Point3DDouble altAz,
Point3DFloat out)
Transforms this point which represents its elements as altAz
coordinates r, alt, az, into cartesian coordinates x, y, z.
|
Point3DFloat |
Point3DFloat.crossProduct(Point3DFloat b)
Calculates the cross product of this vector and another vector, each
represented as a Point3DFloat, in 3D space and returns the vector cross
product.
|
static Point3DFloat |
Point3DFloat.crossProduct(Point3DFloat V,
Point3DFloat W)
Calculates the cross product of two vectors in 3D space, each
represented as a Point3DFloat, and returns the vector cross product.
|
static Point3DFloat |
Point3DFloat.crossProduct(Point3DFloat p1,
Point3DFloat p2,
Point3DFloat p3)
Returns the cross prduct of three points in 3D space (as listed in
counterclockwise order as seen from the "outside") and returns the vector
cross product.
|
static Point3DFloat |
Point3DFloat.cylindricalToXYZ(double r,
double az,
double h,
double cx,
double cy,
double cz,
Point3DFloat out)
Transforms cylindrical coordinates r, az, h into cartesian coordinates
x, y, z.
|
static Point3DFloat |
Point3DFloat.cylindricalToXYZ(Point3DDouble cyl,
Point3DFloat out)
Transforms this point which represents its elements as cylindrical
coordinates r, az, h into cartesian coordinates x, y, z.
|
Point3DFloat |
Point3DFloat.divide(float scale)
Constructs a new Point3DFloat where the components of p2 are divided
by a scalar.
|
Point3DFloat |
VoxelArray.getCenter()
Returns a
Point3DFloat representing the center of this
VoxelArray. |
(package private) Point3DFloat |
MarchingCubes.getColor(Point3DFloat rfPosition,
Point3DFloat rfNormal)
getColor generates a color from a given position and normal of a
point.
|
Point3DFloat |
Plane3DFloat.getNormal()
Returns the normalized unit normal of the plane.
|
static Point3DFloat |
Point3DFloat.makeNormal(float x,
float y,
float z)
Constructs a Point3DFloat that is normalized to have length 1.
|
Point3DFloat |
Point3DFloat.multiply(float scale)
Constructs a new Point3DFloat where the components of p2 are multiplied
by a scalar.
|
Point3DFloat |
Point3DFloat.normalize()
Treats this point as a vector and normalizes it to have length 1,
returning a new vector that is the normalized vector.
|
static Point3DFloat |
Point3DFloat.sphericalToXYZ(double r,
double theta,
double phi,
double cx,
double cy,
double cz,
Point3DFloat out)
Transforms spherical coordinates r, theta, phi into cartesian coordinates
x, y, z.
|
static Point3DFloat |
Point3DFloat.sphericalToXYZ(Point3DDouble spher,
Point3DFloat out)
Transforms this point which represents its elements as spherical
coordinates r, theta, phi into cartesian coordinates x, y, z.
|
Point3DFloat |
Point3DFloat.subtract(Point3DFloat p2)
Constructs a new Point3DFloat where the components of p2 are subtracted
from this point.
|
static Point3DFloat |
Point3DFloat.subtract(Point3DFloat p1,
Point3DFloat p2)
Constructs a new Point3DFloat where the components are subtracted from
each other.
|
Point3DFloat |
CoordinateTransformer3DFloat.transform(float x,
float y,
float z,
Point3DFloat out)
Transform the coordinate (x, y, z) by this matrix.
|
Point3DFloat |
CoordinateTransformer3DFloat.transform(Point3DFloat in,
Point3DFloat out)
Transform the coordinate (x, y, z) by this matrix.
|
Modifier and Type | Method and Description |
---|---|
Point3DFloat |
Point3DFloat.add(Point3DFloat p2)
Constructs a new Point3DFloat where the components of p2 are added to
this point.
|
static Point3DFloat |
Point3DFloat.add(Point3DFloat p1,
Point3DFloat p2)
Constructs a new Point3DFloat where the components are added to
each other.
|
void |
Point3DFloat.addInPlace(Point3DFloat p2)
Adds the specified Point3DFloat to this point, modifying it in
place.
|
float |
Point3DFloat.addLength(Point3DFloat p2)
Returns the length of this+p2.
|
void |
BoundingBox3DFloat.addPoint(Point3DFloat p)
Add a point to a BoundingBox.
|
static Point3DFloat |
Point3DFloat.altAzToXYZ(double r,
double alt,
double az,
double cx,
double cy,
double cz,
Point3DFloat out)
Transforms altAz coordinates r, alt, az into cartesian coordinates
x, y, z.
|
static Point3DFloat |
Point3DFloat.altAzToXYZ(Point3DDouble altAz,
Point3DFloat out)
Transforms this point which represents its elements as altAz
coordinates r, alt, az, into cartesian coordinates x, y, z.
|
Point3DFloat |
Point3DFloat.crossProduct(Point3DFloat b)
Calculates the cross product of this vector and another vector, each
represented as a Point3DFloat, in 3D space and returns the vector cross
product.
|
static Point3DFloat |
Point3DFloat.crossProduct(Point3DFloat V,
Point3DFloat W)
Calculates the cross product of two vectors in 3D space, each
represented as a Point3DFloat, and returns the vector cross product.
|
static Point3DFloat |
Point3DFloat.crossProduct(Point3DFloat p1,
Point3DFloat p2,
Point3DFloat p3)
Returns the cross prduct of three points in 3D space (as listed in
counterclockwise order as seen from the "outside") and returns the vector
cross product.
|
float |
Point3DFloat.crossProductLength(Point3DFloat v)
Calculates the LENGTH of the cross product of two vectors in 3D space
and returns the length.
|
static float |
Point3DFloat.crossProductLength(Point3DFloat V,
Point3DFloat W)
Calculates the LENGTH of the cross product of this vector and another
vector in 3D space and returns the length.
|
static Point3DFloat |
Point3DFloat.cylindricalToXYZ(double r,
double az,
double h,
double cx,
double cy,
double cz,
Point3DFloat out)
Transforms cylindrical coordinates r, az, h into cartesian coordinates
x, y, z.
|
static Point3DFloat |
Point3DFloat.cylindricalToXYZ(Point3DDouble cyl,
Point3DFloat out)
Transforms this point which represents its elements as cylindrical
coordinates r, az, h into cartesian coordinates x, y, z.
|
float |
LineSegment3DFloat.distance(Point3DFloat p)
Calculate the distance from this finite line segment to the specified
point in 3D.
|
float |
Point3DFloat.distance(Point3DFloat p2)
Calculates the distance between this point and another point.
|
static float |
Point3DFloat.distance(Point3DFloat p1,
Point3DFloat p2)
Calculates the distance between two points.
|
float |
Point3DFloat.distanceSquared(Point3DFloat p2)
Returns the squared distance between this point and another point.
|
static float |
Point3DFloat.distanceSquared(Point3DFloat p1,
Point3DFloat p2)
Returns the squared distance between two points.
|
float |
LineSegment3DFloat.distanceToLine(Point3DFloat p)
Calculate the distance from an infinite line (not a line segment!) to
the specified point in 3D.
|
float |
Point3DFloat.dotProduct(Point3DFloat v2)
Returns the dot product of this vector and another vector, each
represented as a Point3DFloat.
|
static float |
Point3DFloat.dotProduct(Point3DFloat v1,
Point3DFloat v2)
Returns the dot product of two vectors, each represented as a
Point3DFloat.
|
void |
VoxelArray.drawCappedCylinder(Point3DFloat p1,
Point3DFloat p2,
float radius)
Draws a cylinder with spherical end caps with the specified endpoints
and radius into this VoxelArray, modifying it in place.
|
void |
VoxelArray.drawCylinder(Point3DFloat p1,
Point3DFloat p2,
float radius)
Draws a cylinder with the specified endpoints
and radius into this VoxelArray, modifying it in place.
|
void |
VoxelArray.drawTaperedCappedCylinder(Point3DFloat p1,
Point3DFloat p2,
float radius1,
float radius2)
Draws a cylinder with spherical end caps with the specified endpoints
and radius into this VoxelArray, modifying it in place.
|
void |
VoxelArray.drawTaperedCylinder(Point3DFloat p1,
Point3DFloat p2,
float radius1,
float radius2)
Draws a cylinder with the specified endpoints
and radiii into this VoxelArray, modifying it in place.
|
(package private) Point3DFloat |
MarchingCubes.getColor(Point3DFloat rfPosition,
Point3DFloat rfNormal)
getColor generates a color from a given position and normal of a
point.
|
boolean |
Plane3DFloat.isInside(Point3DFloat p)
Returns true if the specified point is "inside" the plane.
|
static VoxelArray |
VoxelArray.makeCappedCylinder(Point3DFloat p1,
Point3DFloat p2,
float radius)
Makes a cylinder with spherical end caps with the specified endpoints
and radius.
|
static VoxelArray |
VoxelArray.makeCylinder(Point3DFloat p1,
Point3DFloat p2,
float radius)
Makes a cylinder with with the specified endpoints and radius.
|
static CoordinateTransformer3DFloat |
CoordinateTransformer3DFloat.makeRotate(Point3DFloat point,
Point3DFloat vec,
double theta)
Build a rotation matrix for rotations about the line through the point
point parallel to the vector vec
by the angle theta. |
static VoxelArray |
VoxelArray.makeTaperedCappedCylinder(Point3DFloat p1,
Point3DFloat p2,
float radius1,
float radius2)
Makes a cylinder with spherical end caps with the specified endpoints
and radius.
|
static VoxelArray |
VoxelArray.makeTaperedCylinder(Point3DFloat p1,
Point3DFloat p2,
float radius1,
float radius2)
Makes a tapered cylinder with with the specified endpoints and radius.
|
float |
VoxelArray.sampleFloat(Point3DFloat p)
Sample the field at the specified 3-dimensional point and return its
value.
|
VoxelArray |
VoxelArray.solidOfRotation(Point3DFloat point,
Point3DFloat axis,
double angle1,
double angle2)
Creates a solid of rotation by rotating this VoxelArray around
an axis going through point (x,y,z) and the normal (u,v,w).
|
static Point3DFloat |
Point3DFloat.sphericalToXYZ(double r,
double theta,
double phi,
double cx,
double cy,
double cz,
Point3DFloat out)
Transforms spherical coordinates r, theta, phi into cartesian coordinates
x, y, z.
|
static Point3DFloat |
Point3DFloat.sphericalToXYZ(Point3DDouble spher,
Point3DFloat out)
Transforms this point which represents its elements as spherical
coordinates r, theta, phi into cartesian coordinates x, y, z.
|
Point3DFloat |
Point3DFloat.subtract(Point3DFloat p2)
Constructs a new Point3DFloat where the components of p2 are subtracted
from this point.
|
static Point3DFloat |
Point3DFloat.subtract(Point3DFloat p1,
Point3DFloat p2)
Constructs a new Point3DFloat where the components are subtracted from
each other.
|
void |
Point3DFloat.subtractInPlace(Point3DFloat p2)
Subtracts the specified Point3DFloat from this point, modifying it in
place.
|
Point3DFloat |
CoordinateTransformer3DFloat.transform(float x,
float y,
float z,
Point3DFloat out)
Transform the coordinate (x, y, z) by this matrix.
|
Point3DFloat |
CoordinateTransformer3DFloat.transform(Point3DFloat in,
Point3DFloat out)
Transform the coordinate (x, y, z) by this matrix.
|
Constructor and Description |
---|
BoundingBox3DFloat(Point3DFloat p)
Construct a zero-sized BoundingBox around a single point.
|
BoundingBox3DFloat(Point3DFloat p1,
Point3DFloat p2)
Construct a BoundingBox with the specified coordinates.
|
LineSegment3DFloat(Point3DFloat p1,
Point3DFloat p2)
Construct a line segment with the 2 specified endpoints.
|
Plane3DFloat(Point3DFloat p,
Point3DFloat n)
Construct a Plane3DFloat using a point p and a normal direction n.
|
Plane3DFloat(Point3DFloat p1,
Point3DFloat p2,
Point3DFloat p3)
Construct a Plane3DFloat from 3 points, listed in the counterclockwise
direction as seen from outside the object.
|
Point3DDouble(Point3DFloat orig)
Construct a Point3DDouble from a Point3DFloat
|
Triangle3DFloat(Point3DFloat v0,
Point3DFloat v1,
Point3DFloat v2)
Construct a Trangle3D with the 3 specified points.
|