|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgeometry.J3Utility
public class J3Utility
This class provides some utility for common geometrical calculation.
| Constructor Summary | |
|---|---|
J3Utility()
|
|
| Method Summary | |
|---|---|
static double |
getDistanceFromLineToPoint(J3Line line,
J3Vector r)
returns distance between a line and a point |
static J3Vector |
getThePerpendicularOnLineFromPoint(J3Line line,
J3Vector r)
|
static void |
moveLineVectorToPlane(J3Line line,
J3UnitVector nPlane,
J3Vector rPlane)
Move the line vector to where it crosses a plane with a fixed point vector rPlane and plane direction nPlane |
static void |
setJ3LineNegativeAxisLengthForGivenLength(J3Line line,
double lineLength)
Set J3Line's axis length so that its absolute length |J3Line| is equal to the given length. |
static void |
setJ3LineNegativeAxisLengthForGivenLength(J3Line line,
J3Vector r,
double lineLength)
Set J3Line's axis length so that its absolute length |J3Line-J3Vector| is equal to the given length. |
static void |
setJ3LinePositiveAxisLengthForGivenLength(J3Line line,
double lineLength)
Set J3Line's axis length so that its absolute length |J3Line| is equal to the given length. |
static void |
setJ3LinePositiveAxisLengthForGivenLength(J3Line line,
J3Vector r,
double lineLength)
Set J3Line's axis length so that its absolute length |J3Line-J3Vector| is equal to the given length. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public J3Utility()
| Method Detail |
|---|
public static double getDistanceFromLineToPoint(J3Line line,
J3Vector r)
public static void moveLineVectorToPlane(J3Line line,
J3UnitVector nPlane,
J3Vector rPlane)
public static void setJ3LinePositiveAxisLengthForGivenLength(J3Line line,
double lineLength)
J3Line line : J3Line vector you want to set.
lineLength : The value you have for |line|.
Choose the positive value of axis length.
public static void setJ3LineNegativeAxisLengthForGivenLength(J3Line line,
double lineLength)
J3Line line : J3Line vector you want to set.
lineLength : The value you have for |line|.
Choose the negative value of axis length.
public static void setJ3LinePositiveAxisLengthForGivenLength(J3Line line,
J3Vector r,
double lineLength)
J3Line line : J3Line vector you want to set.
J3Vector r : J3Vector from which the vector goes to J3Line above
lineLength : The value you have for |line|.
Choose the positive value of axis length.
public static void setJ3LineNegativeAxisLengthForGivenLength(J3Line line,
J3Vector r,
double lineLength)
J3Line line : J3Line vector you want to set.
J3Vector r : J3Vector from which the vector goes to J3Line above
lineLength : The value you have for |line|.
Choose the negative value of axis length.
public static J3Vector getThePerpendicularOnLineFromPoint(J3Line line,
J3Vector r)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||