public class SliceUtil
extends java.lang.Object
Slice
.Modifier and Type | Field and Description |
---|---|
static javax.vecmath.Vector3d |
X_AXIS |
static javax.vecmath.Vector3d |
Y_AXIS |
static javax.vecmath.Vector3d |
Z_AXIS |
static double |
ZERO |
Constructor and Description |
---|
SliceUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
calculateRotation(javax.vecmath.Vector3d src,
javax.vecmath.Vector3d dest,
javax.vecmath.AxisAngle4d axisAngle)
Calculate the rotation to get from 'src' to 'dest' and store that in
'axisAngle'
|
static void |
calculateRotation(javax.vecmath.Vector3d src,
javax.vecmath.Vector3d dest,
javax.vecmath.Matrix4d m) |
static javax.vecmath.Matrix4d |
calculateRotation(javax.vecmath.Vector3d srcZero,
javax.vecmath.Vector3d srcOne,
javax.vecmath.Vector3d destZero,
javax.vecmath.Vector3d destOne)
Calculate the rotation to get from 'srcZero' and 'srcOne' to
'destZero' and 'destOne' .
|
static double |
get(javax.vecmath.Tuple3d t,
int axis) |
static int |
nextPowerOf2(int value) |
static void |
orderPointsForSimpleClosedPath(javax.vecmath.Point2d[] intersection2d,
javax.vecmath.Point3d[] intersection3d)
Order the points to draw a simple closed path, from
Algorithms in C++, Sedgewick, chapter 24.
|
static javax.vecmath.Point3d |
segmentPlaneIntersection(javax.vecmath.Vector3d p0,
javax.vecmath.Vector3d dv,
double leftLimit,
double rightLimit,
javax.vecmath.Vector3d n,
double d)
Intersection between a ray segment and a plane
section 13.9 3D Math Primer for
Graphics and Game Development by Dunn&Parberry
|
static void |
set(javax.vecmath.Tuple3d t,
int axis,
double value) |
static void |
swap(java.lang.Object[] a,
int i,
int j) |
static javax.vecmath.Point3d |
toPoint3d(javax.vecmath.Point3i p) |
public static javax.vecmath.Vector3d X_AXIS
public static javax.vecmath.Vector3d Y_AXIS
public static javax.vecmath.Vector3d Z_AXIS
public static double ZERO
public static int nextPowerOf2(int value)
public static double get(javax.vecmath.Tuple3d t, int axis)
public static void set(javax.vecmath.Tuple3d t, int axis, double value)
public static javax.vecmath.Point3d segmentPlaneIntersection(javax.vecmath.Vector3d p0, javax.vecmath.Vector3d dv, double leftLimit, double rightLimit, javax.vecmath.Vector3d n, double d)
public static void swap(java.lang.Object[] a, int i, int j)
public static void orderPointsForSimpleClosedPath(javax.vecmath.Point2d[] intersection2d, javax.vecmath.Point3d[] intersection3d)
public static javax.vecmath.Matrix4d calculateRotation(javax.vecmath.Vector3d srcZero, javax.vecmath.Vector3d srcOne, javax.vecmath.Vector3d destZero, javax.vecmath.Vector3d destOne)
public static javax.vecmath.Point3d toPoint3d(javax.vecmath.Point3i p)
public static void calculateRotation(javax.vecmath.Vector3d src, javax.vecmath.Vector3d dest, javax.vecmath.Matrix4d m)
public static void calculateRotation(javax.vecmath.Vector3d src, javax.vecmath.Vector3d dest, javax.vecmath.AxisAngle4d axisAngle)