A C G M N P T V

## A

add(vec2d, vec2d) - Static method in class vec2d
Compute the sum of two vectors.

## C

clone() - Method in class vec2d
clone another copy of itself this function makes sure the new copy have its own copy of data in memory other than those data of the original vector.
coline(vec2d, vec2d, vec2d) - Static method in class vec2d
check if three points are in the same line of two dimensional space.

## G

getLength() - Method in class vec2d
Calculate the 2-norm of the vector, which is the square root of the sum of the square of the coordinates.
getX() - Method in class vec2d
Get the first coordinate of the vec2d object.
getY() - Method in class vec2d
Get the second coordinate of the vec2d object.

## M

mul(double, vec2d) - Static method in class vec2d
scale a vector.

## N

normalize() - Method in class vec2d
Scale the vector to a unit vector.

## P

proj(vec2d, vec2d) - Static method in class vec2d
return the projection of vector u on vector v For two vectors u and v in linear algebra, the projection of u on v is the component of u such that in the same direction of v.

## T

triangleArea(vec2d, vec2d, vec2d) - Static method in class vec2d
Computer the area of a triangle.

## V

vec2d - Class in <Unnamed>
vec2d is a class representing the mathematical concept of two-dimensional vector.
vec2d(double, double) - Constructor for class vec2d
Creates a new instance of vec2d

A C G M N P T V