java.lang.Object
de.grogra.vecmath.geom.Variables
- Direct Known Subclasses:
IntersectionList,Octree.State
This class contains a set of temporary variables which may be used
freely in methods which receive an instance of
Variables
as argument. The sole requirement is that the size of the
int-stack is restored to its value before method invocation.- Author:
- Ole Kniemeyer
-
Field Summary
FieldsModifier and TypeFieldDescriptionThis map may be used by methods which have an instance ofVariablesas parameter in order to store some information which should be available in following invocations of the method.int[]This field contains anint-stack.final LineThis line may be used freely.final Matrix3dThis matrix may be used freely.final Point3dThis point may be used freely.final Point3dThis point may be used freely.final Point3dThis point may be used freely.final Point3dThis point may be used freely.final Vector3dThis vector may be used freely.final Vector3dThis vector may be used freely.final Vector3dThis vector may be used freely.final Vector3dThis vector may be used freely. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetISize()intienter(int size) This method increases the size of theint-stackistackbysizeand returns the previous size of the stack.intipop()This method pops the topmost element off theint-stackistackand returns its value.voidipush(int value) voidsetISize(int isize)
-
Field Details
-
tmpPoint0
This point may be used freely. -
tmpPoint1
This point may be used freely. -
tmpPoint2
This point may be used freely. -
tmpPoint3
This point may be used freely. -
tmpVector0
This vector may be used freely. -
tmpVector1
This vector may be used freely. -
tmpVector2
This vector may be used freely. -
tmpVector3
This vector may be used freely. -
tmpMatrix3
This matrix may be used freely. -
tmpLine
This line may be used freely. -
cache
This map may be used by methods which have an instance ofVariablesas parameter in order to store some information which should be available in following invocations of the method. -
istack
public int[] istackThis field contains anint-stack. Its size is defined byisize.- See Also:
-
-
Constructor Details
-
Variables
public Variables()
-
-
Method Details
-
getISize
public int getISize() -
setISize
public void setISize(int isize) - Parameters:
isize- new size of stack
-
ipush
public void ipush(int value) - Parameters:
value- value to push
-
ipop
public int ipop()This method pops the topmost element off theint-stackistackand returns its value.- Returns:
- popped element
-
ienter
public int ienter(int size) This method increases the size of theint-stackistackbysizeand returns the previous size of the stack.- Parameters:
size- size increment- Returns:
- previous value of stack size
- See Also:
-