s3d_vector_dot_product(3)

calculate dot product of two vectors

Section 3 s3d-doc bookworm source

Description

S3D_VECTOR_DOT_PRODU

NAME

s3d_vector_dot_product - calculate dot product of two vectors

SYNOPSIS

#include <s3d.h>

float s3d_vector_dot_product(const float vector1[], const float vector2[]);

DESCRIPTION

Calculates and returns the dot product of vector1 and vector2. All vectors should have the format float[3]. More info on wikipedia. http://en.wikipedia.org/wiki/Vector_(spatial)

AUTHOR

Simon Wunderlich

Author of s3d