src/Alg/Math/Algebra/Vector.php
public function getValueFromIndex( $index )
	{
		$dimension	= $this->getDimension();
		if( $index < 0 )
			throw new OutOfRangeException( 'Vector Index ('.$index.') must be greater than 0.' );
		if( $index >= $dimension )
			throw new OutOfRangeException( 'Vector Index ('.$index.') must be lower than Vector Dimension ('.$dimension.').' );
		return $this->values[$index];
	}
public function getValueFromIndex( $index )
	{
		$dimension	= $this->getDimension();
		if( $index < 0 )
			throw new OutOfRangeException( 'Vector Index ('.$index.') must be greater than 0.' );
		if( $index >= $dimension )
			throw new OutOfRangeException( 'Vector Index ('.$index.') must be lower than Vector Dimension ('.$dimension.').' );
		return $this->values[$index];
	}
public function getValueFromIndex ( $ index ) { $ dimension = $ this -> getDimension ( ) ; if ( $ index < 0 ) throw new OutOfRangeException ( 'Vector Index (' . $ index . ') must be greater than 0.' ) ; if ( $ index >= $ dimension ) throw new OutOfRangeException ( 'Vector Index (' . $ index . ') must be lower than Vector Dimension (' . $ dimension . ').' ) ; return $ this -> values [ $ index ] ; }
Returns the value of a dimension starting with 0.
@access		public
@param		int			$index			Dimension starting with 0
@return		mixed
Returns the value of a dimension starting with 0 .