A three dimensional vector.
More...
List of all members.
Public Member Functions |
| Vec3 () |
| Initializes a new instance of the vec3 class.
|
| Vec3 (float x, float y, float z) |
| Initializes a new instance of the vec3 class.
|
| Vec3 (float x, float y) |
| Initializes a new instance of the vec3 class.
|
| Vec3 (float[] u) |
| Initializes a new instance of the vec3 class.
|
float | Norm () |
| Returns the norm of the Vec3.
|
float | Length () |
| Returns the length of the Vec3.
|
void | Normalize () |
| Normalizes the Vec3.
|
float | dist2 (Vec3 _vec) |
| Returns the Norm of the difference vector.
|
float | dist (Vec3 _vec) |
| Returns the length of the difference vector.
|
float | Dot (Vec3 _vec) |
| Calculates the dot product.
|
Vec3 | Cross (Vec3 _vec) |
| Calculates the cross product of two Vec3.
|
override string | ToString () |
| Computes string presentation of Vec3.
|
void | Print () |
| Prints the Vec3 to the console.
|
Static Public Member Functions |
static Vec3 | operator+ (Vec3 _first, Vec3 _second) |
| Add operator for two Vec3.
|
static Vec3 | operator- (Vec3 _first, Vec3 _second) |
| Subtract operator for two Vec3.
|
static Vec3 | operator* (Vec3 _vec, float _scalar) |
| Multiplikation for a Vec3 and a skalar.
|
static Vec3 | operator/ (Vec3 _vec, float _scalar) |
| Division for a Vec3 and a skalar.
|
static bool | equal (Vec3 _first, Vec3 _second) |
| Equal operation for Vec3.
|
static bool | notEqual (Vec3 _first, Vec3 _second) |
| Unqual operation for Vec3.
|
static Vec3 | operator- (Vec3 _vec) |
| Negate operation for a Vec3.
|
Properties |
float | this [int i] [get, set] |
| Index operator.
|
Detailed Description
A three dimensional vector.
Constructor & Destructor Documentation
FlowMarkt::Vec3::Vec3 |
( |
) |
[inline] |
Initializes a new instance of the vec3 class.
FlowMarkt::Vec3::Vec3 |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
z |
|
) |
| [inline] |
Initializes a new instance of the vec3 class.
- Parameters:
-
x | First component |
y | Second component |
z | Third component |
FlowMarkt::Vec3::Vec3 |
( |
float |
x, |
|
|
float |
y |
|
) |
| [inline] |
Initializes a new instance of the vec3 class.
- Parameters:
-
x | First component |
y | Second component |
FlowMarkt::Vec3::Vec3 |
( |
float[] |
u ) |
[inline] |
Initializes a new instance of the vec3 class.
- Parameters:
-
u | Array with at least 3 values |
Member Function Documentation
Vec3 FlowMarkt::Vec3::Cross |
( |
Vec3 |
_vec ) |
[inline] |
Calculates the cross product of two Vec3.
- Parameters:
-
- Returns:
- The cross product
float FlowMarkt::Vec3::dist |
( |
Vec3 |
_vec ) |
[inline] |
Returns the length of the difference vector.
- Parameters:
-
- Returns:
- Length of the difference vector
float FlowMarkt::Vec3::dist2 |
( |
Vec3 |
_vec ) |
[inline] |
Returns the Norm of the difference vector.
- Parameters:
-
- Returns:
- Norm of the difference vector
float FlowMarkt::Vec3::Dot |
( |
Vec3 |
_vec ) |
[inline] |
Calculates the dot product.
- Parameters:
-
- Returns:
- The dot product
static bool FlowMarkt::Vec3::equal |
( |
Vec3 |
_first, |
|
|
Vec3 |
_second |
|
) |
| [inline, static] |
Equal operation for Vec3.
- Parameters:
-
- Returns:
- True if the Vec3 are equal, otherwise false
float FlowMarkt::Vec3::Length |
( |
) |
[inline] |
Returns the length of the Vec3.
- Returns:
- Length
float FlowMarkt::Vec3::Norm |
( |
) |
[inline] |
Returns the norm of the Vec3.
- Returns:
- Norm of the Vec3
void FlowMarkt::Vec3::Normalize |
( |
) |
[inline] |
static bool FlowMarkt::Vec3::notEqual |
( |
Vec3 |
_first, |
|
|
Vec3 |
_second |
|
) |
| [inline, static] |
Unqual operation for Vec3.
- Parameters:
-
- Returns:
- True if the Vec3 are unequal, otherwise false
static Vec3 FlowMarkt::Vec3::operator* |
( |
Vec3 |
_vec, |
|
|
float |
_scalar |
|
) |
| [inline, static] |
Multiplikation for a Vec3 and a skalar.
- Parameters:
-
- Returns:
- The multiplied Vec3
static Vec3 FlowMarkt::Vec3::operator+ |
( |
Vec3 |
_first, |
|
|
Vec3 |
_second |
|
) |
| [inline, static] |
Add operator for two Vec3.
- Parameters:
-
- Returns:
- The added Vec3
static Vec3 FlowMarkt::Vec3::operator- |
( |
Vec3 |
_first, |
|
|
Vec3 |
_second |
|
) |
| [inline, static] |
Subtract operator for two Vec3.
- Parameters:
-
- Returns:
- The subtracted Vec4
static Vec3 FlowMarkt::Vec3::operator- |
( |
Vec3 |
_vec ) |
[inline, static] |
Negate operation for a Vec3.
- Parameters:
-
- Returns:
- The opposit Vec3
static Vec3 FlowMarkt::Vec3::operator/ |
( |
Vec3 |
_vec, |
|
|
float |
_scalar |
|
) |
| [inline, static] |
Division for a Vec3 and a skalar.
- Parameters:
-
- Returns:
- The divided Vec3
void FlowMarkt::Vec3::Print |
( |
) |
[inline] |
Prints the Vec3 to the console.
override string FlowMarkt::Vec3::ToString |
( |
) |
[inline] |
Computes string presentation of Vec3.
- Returns:
Property Documentation
float FlowMarkt::Vec3::this[int i] [get, set] |
Index operator.
- Parameters:
-
- Returns:
- The value at the index position
The documentation for this class was generated from the following file:
- D:/Matthias/studium/6sem/visualisierung/workdir/Vislucsgl/FlowMarkt/Vec3.cs