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
Modifier and TypeFieldDescriptionThis map may be used by methods which have an instance ofVariables
as parameter in order to store some information which should be available in following invocations of the method.int[]
This field contains anint
-stack.final Line
This line may be used freely.final Matrix3d
This matrix may be used freely.final Point3d
This point may be used freely.final Point3d
This point may be used freely.final Point3d
This point may be used freely.final Point3d
This point may be used freely.final Vector3d
This vector may be used freely.final Vector3d
This vector may be used freely.final Vector3d
This vector may be used freely.final Vector3d
This vector may be used freely. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getISize()
int
ienter
(int size) This method increases the size of theint
-stackistack
bysize
and returns the previous size of the stack.int
ipop()
This method pops the topmost element off theint
-stackistack
and returns its value.void
ipush
(int value) void
setISize
(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 ofVariables
as 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
-stackistack
and returns its value.- Returns:
- popped element
-
ienter
public int ienter(int size) This method increases the size of theint
-stackistack
bysize
and returns the previous size of the stack.- Parameters:
size
- size increment- Returns:
- previous value of stack size
- See Also:
-