Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

VNVector.h File Reference

#include "nvsgcommon.h"
#include "nvmath/nvmath.h"
#include "nvmath/Vec3f.h"

Include dependency graph for VNVector.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  nvsg

Functions

VNVector lerp (float alpha, const VNVector &v0, const VNVector &v1)
 Linear interpolation between two VNVector.


Detailed Description


Function Documentation

VNVector lerp float  alpha,
const VNVector &  v0,
const VNVector &  v1
[inline]
 

Linear interpolation between two VNVector.

Performs a linear interpolation v = v0 + alpha * ( v1 - v0 ) of each corresponding vertex and normal of the two VNVector. The interpolated normals are normalized then.

Note:
The two VNVector are assumed to be the same size.
Returns:
a VNVector with the interpolated vertices and normals.
Parameters:
alpha  interpolation parameter
v0  start value of interpolation
v1  end value of interpolation


Generated on Tue Mar 1 13:20:21 2005 for NVSGSDK by NVIDIA