Uses of Package
de.grogra.turtle
-
ClassDescriptionThe turtle command
F(x)
represents a cylinder along the local z-direction. -
ClassDescriptionThe turtle command
F(x)
represents a cylinder along the local z-direction. -
-
ClassDescriptionThis is the base class of turtle commands which assign a value to a state variable of the turtle and have a single parameter.The turtle command
ClAdd(x)
setsTurtleState.localCarbon
to the sum ofTurtleState.carbon
and the specifiedargument
x
.The turtle commandClMul(x)
setsTurtleState.localCarbon
to the product of the fieldTurtleState.carbon
and the specifiedargument
x
.The turtle commandDlAdd(x)
setsTurtleState.localDiameter
to the sum ofTurtleState.diameter
and the specifiedargument
x
.The turtle commandDlMul(x)
setsTurtleState.localDiameter
to the product of the fieldTurtleState.diameter
and the specifiedargument
x
.The turtle commandF(x)
represents a cylinder along the local z-direction.The turtle commandFAdd(x)
represents a cylinder along the local z-direction.The turtle commandFMul(x)
represents a cylinder along the local z-direction.Set the local z-axis (the turtle's head axis) so that it encompasses the given angle to the world's up axis.The turtle commandHlAdd(x)
setsTurtleState.localHeartwood
to the sum ofTurtleState.heartwood
and the specifiedargument
x
.The turtle commandHlMul(x)
setsTurtleState.localHeartwood
to the product of the fieldTurtleState.heartwood
and the specifiedargument
x
.The turtle commandLlAdd(x)
setsTurtleState.localLength
to the sum ofTurtleState.length
and the specifiedargument
x
.The turtle commandLlMul(x)
setsTurtleState.localLength
to the product of the fieldTurtleState.length
and the specifiedargument
x
.The turtle commandM(x)
represents a movement along the local z-direction.The turtle commandMAdd(x)
represents a movement along the local z-direction.The turtle commandMMul(x)
represents a movement along the local z-direction.The turtle commandMRel(x)
represents a movement along the local z-direction.The turtle commandNlAdd(x)
setsTurtleState.localParameter
to the sum ofTurtleState.parameter
and the specifiedargument
x
.The turtle commandNlMul(x)
setsTurtleState.localParameter
to the product of the fieldTurtleState.parameter
and the specifiedargument
x
.AnRD(x,s)
node represents a rotation which implements a directional tropism towards the directionx
.This class implements a rotation about the local z-axis (the turtle's head axis).This class implements a rotation about the local x-axis (the turtle's left axis).AnRN(x,s)
node represents a rotation which implements a positional tropism towards thelocation
of nodex
.AnRO(x,s)
node represents a rotation which implements an orthogonal tropism which moves away from a given directionx
.ARotate
node rotates the local coordinate system byRotate.rotateX
degrees about the local x-axis, then byRotate.rotateY
degrees about the local y-axis, then byRotate.rotateZ
degrees about the local z-axis.This class is the base class for rotations about one of the coordinate axes.AnRP(x,s)
node represents a rotation which implements a positional tropism towards the pointx
.This class implements a rotation about the local y-axis (the turtle's up axis).The turtle commandRV(x)
represents a rotation which implements gravitropism.The turtle commandRVAdd(x)
represents a rotation which implements gravitropism.The turtle commandRVMul(x)
represents a rotation which implements gravitropism.AScale
node scales the local coordinate system using the scaling factorsScale.scaleX
,Scale.scaleY
andScale.scaleZ
.ATranslate
node translates the local coordinate system using the translation distancesTranslate.translateX
,Translate.translateY
andTranslate.translateZ
.The turtle commandUlAdd(x)
setsTurtleState.localInternodeCount
to the sum ofTurtleState.internodeCount
and the specifiedargument
x
.The turtle commandUlMul(x)
setsTurtleState.localInternodeCount
to the product of the fieldTurtleState.internodeCount
and the specifiedargument
x
.This class implements a rotation about the local y-axis (the turtle's up axis).The turtle commandVlAdd(x)
setsTurtleState.localTropism
to the sum ofTurtleState.tropism
and the specifiedargument
x
.The turtle commandVlMul(x)
setsTurtleState.localTropism
to the product of the fieldTurtleState.tropism
and the specifiedargument
x
.