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

nvmath::Vec4f Class Reference

4-component vector class. More...

#include <Vec4f.h>

Inheritance diagram for nvmath::Vec4f:

Inheritance graph
[legend]
Collaboration diagram for nvmath::Vec4f:

Collaboration graph
[legend]
List of all members.

Public Member Functions

NVSG_API Vec4f (void)
 Default constructor.
NVSG_API Vec4f (float x, float y, float z, float w)
 Constructor using four floats.
NVSG_API Vec4f (const Vec3f &v3, float w)
 Constructor using a 3-vector and a float.
NVSG_API Vec4f (const Vecnf< 4 > &v)
 Copy constructor.
NVSG_API void set (float x, float y, float z, float w)
 Set the vector with four float values.

Related Functions

(Note that these are not member functions.)

Vec4f operator * (float f, const Vec4f &v)

Detailed Description

4-component vector class.


Constructor & Destructor Documentation

nvmath::Vec4f::Vec4f void   )  [inline]
 

Default constructor.

For performance reasons no initialization is performed.

nvmath::Vec4f::Vec4f float  x,
float  y,
float  z,
float  w
[inline]
 

Constructor using four floats.

A vector with the given values is constructed.

Parameters:
x  x component
y  y component
z  z component
w  w component

nvmath::Vec4f::Vec4f const Vec3f v3,
float  w
[inline]
 

Constructor using a 3-vector and a float.

Parameters:
v3  vector of x, y, z component
w  w component

nvmath::Vec4f::Vec4f const Vecnf< 4 > &  v  )  [inline]
 

Copy constructor.

Parameters:
v  vector to copy


Member Function Documentation

void nvmath::Vec4f::set float  x,
float  y,
float  z,
float  w
[inline]
 

Set the vector with four float values.

Parameters:
x  x component
y  y component
z  z component
w  w component


Friends And Related Function Documentation

Vec4f operator * float  f,
const Vec4f v
[related]
 

Multiplication of a scalar with a vector.

Returns:
product of f with v
Parameters:
f  scalar to multiply with
v  vector to multiply


The documentation for this class was generated from the following file:
Generated on Tue Mar 1 13:20:40 2005 for NVSGSDK by NVIDIA