public void setNode ( int number , Vector3D v ) { if ( number <= 0 ) { number = 0 ; } else if ( 3 <= number ) { number = 3 ; } this . points [ number * 3 ] = ( float ) v . getX ( ) ; this . points [ number * 3 + 1 ] = ( float ) v . getY ( ) ; this . points [ number * 3 + 2 ] = ( float ) v . getZ ( ) ; set ( ) ; }
Sets coordinate of nodes of this Curve .