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

nvmath::Vec2f Class Reference

2-component vector class. More...

#include <Vec2f.h>

Inheritance diagram for nvmath::Vec2f:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

NVSG_API Vec2f (void)
 Default constructor.
NVSG_API Vec2f (float x, float y)
 Constructor using two floats.
NVSG_API Vec2f (const Vecnf< 2 > &v)
 Copy constructor.
NVSG_API void set (float x, float y)
 Set the vector with two float values.

Related Functions

(Note that these are not member functions.)

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

Detailed Description

2-component vector class.


Constructor & Destructor Documentation

nvmath::Vec2f::Vec2f void   )  [inline]
 

Default constructor.

For performance reasons no initialization is performed.

nvmath::Vec2f::Vec2f float  x,
float  y
[inline]
 

Constructor using two floats.

A vector with the given values is constructed.

Parameters:
x  x component
y  y component

nvmath::Vec2f::Vec2f const Vecnf< 2 > &  v  )  [inline]
 

Copy constructor.


Member Function Documentation

void nvmath::Vec2f::set float  x,
float  y
[inline]
 

Set the vector with two float values.

Parameters:
x  x component
y  y component


Friends And Related Function Documentation

Vec2f operator * float  f,
const Vec2f 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