public void moveTo ( Point3d point ) { if ( this . numTypesProperty . get ( ) > 0 && this . types [ this . numTypesProperty . get ( ) - 1 ] == PathElementType . MOVE_TO ) { this . coordsProperty [ this . numCoordsProperty . get ( ) - 3 ] = point . xProperty ; this . coordsProperty [ this . numCoordsProperty . get ( ) - 2 ] = point . yProperty ; this . coordsProperty [ this . numCoordsProperty . get ( ) - 1 ] = point . zProperty ; } else { ensureSlots ( false , 3 ) ; this . types [ this . numTypesProperty . get ( ) ] = PathElementType . MOVE_TO ; this . numTypesProperty . set ( this . numTypesProperty . get ( ) + 1 ) ; this . coordsProperty [ this . numCoordsProperty . get ( ) ] = point . xProperty ; this . numCoordsProperty . set ( this . numCoordsProperty . get ( ) + 1 ) ; this . coordsProperty [ this . numCoordsProperty . get ( ) ] = point . yProperty ; this . numCoordsProperty . set ( this . numCoordsProperty . get ( ) + 1 ) ; this . coordsProperty [ this . numCoordsProperty . get ( ) ] = point . zProperty ; this . numCoordsProperty . set ( this . numCoordsProperty . get ( ) + 1 ) ; } this . graphicalBounds = null ; this . logicalBounds = null ; }
Adds a point to the path by moving to the specified coordinates specified in point in paramater .