Multi-Dimensional Vector Header/Object for the FRTW C Library. More...
#include <nttw/array.h>
Go to the source code of this file.
Typedefs | |
typedef long * | vector |
This designates the data type that is used to represent a mathematical vector. | |
Functions | |
NTTW_DLL_SYM vector | vector_2D () |
Constructs a 2 dimensional vector and returns it. | |
NTTW_DLL_SYM vector | vector_2D_Set (const long x, const long y) |
Constructs a 2 dimensional vector and returns it. | |
NTTW_DLL_SYM vector * | vectorArray_2D (const size_t size) |
Constructs a 2 dimensional vector and returns it. | |
NTTW_DLL_SYM long | getComponent (const vector inVector, const int j) |
Returns the coordinate/component of the vector. | |
NTTW_DLL_SYM void | setComponent (vector inVector, const int j, const long value) |
Sets component j of inVector to value provided. | |
NTTW_DLL_SYM long | getX (const vector inVector) |
Returns the x component of the vector inVector. | |
NTTW_DLL_SYM void | setX (vector inVector, const long value) |
Sets the x component of the vector inVector. | |
NTTW_DLL_SYM long | getY (const vector inVector) |
Returns the y component of the vector inVector. | |
NTTW_DLL_SYM void | setY (vector inVector, const long value) |
Sets the y component of the vector inVector. | |
NTTW_DLL_SYM void | setXY (vector inVector, const long xValue, const long yValue) |
Sets the x and y components of the vector inVector. | |
NTTW_DLL_SYM void | free_vector (vector vec) |
Free/Deallocates memory of the vector vec. | |
NTTW_DLL_SYM void | free_vectorArray (vector *matrix, const size_t size) |
Free/Deallocates memory used by vector array provided. |
Multi-Dimensional Vector Header/Object for the FRTW C Library.
FRTW Vector Library
This object provides various Vector operations/methods. This wraps the array object to provide vector functionality.
This file is part of FRTW Library.
FRTW is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
FRTW is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with FRTW. If not, see <http://www.gnu.org/licenses/>.
Definition in file vector.h.