MeshLib
 
Loading...
Searching...
No Matches
MRDotNet/MRVector3.h
Go to the documentation of this file.
1#pragma once
2#include "MRMeshFwd.h"
3
5
7public ref class Vector3f
8{
9public:
13 Vector3f( float x, float y, float z );
15
17 static Vector3f^ Diagonal( float a );
18 static Vector3f^ PlusX();
19 static Vector3f^ MinusX();
20 static Vector3f^ PlusY();
21 static Vector3f^ MinusY();
22 static Vector3f^ PlusZ();
23 static Vector3f^ MinusZ();
24
27 static Vector3f^ operator*( Vector3f^ a, float b );
28 static Vector3f^ operator*( float a, Vector3f^ b );
29
31 property float X { float get(); void set( float value ); }
33 property float Y { float get(); void set( float value ); }
35 property float Z { float get(); void set( float value ); }
36
37 static bool operator == ( Vector3f^ a, Vector3f^ b );
38 static bool operator != ( Vector3f^ a, Vector3f^ b );
39
40private:
41 MR::Vector3f* vec_;
42
43internal:
44 Vector3f( MR::Vector3f* vec );
45 MR::Vector3f* vec() { return vec_; }
46};
47
49
#define MR_DOTNET_NAMESPACE_BEGIN
Definition MRDotNet/MRMeshFwd.h:42
#define MR_DOTNET_NAMESPACE_END
Definition MRDotNet/MRMeshFwd.h:43
represents a 3-dimentional float-typed vector
Definition MRDotNet/MRVector3.h:8
static bool operator==(Vector3f^ a, Vector3f^ b)
static Vector3f operator+(Vector3f^ a, Vector3f^ b)
Vector3f()
creates a new vector with zero coordinates
static Vector3f MinusZ()
static Vector3f operator*(float a, Vector3f^ b)
static Vector3f MinusY()
static Vector3f PlusY()
void set(float value)
static bool operator!=(Vector3f^ a, Vector3f^ b)
static Vector3f PlusZ()
Vector3f(float x, float y, float z)
creates a new vector with specified coordinates
property float X
first coordinate
Definition MRDotNet/MRVector3.h:31
static Vector3f operator*(Vector3f^ a, float b)
static Vector3f Diagonal(float a)
creates a new vector with same coordinates
property float Y
second coordinate
Definition MRDotNet/MRVector3.h:33
static Vector3f PlusX()
static Vector3f operator-(Vector3f^ a, Vector3f^ b)
property float Z
third coordinate
Definition MRDotNet/MRVector3.h:35
static Vector3f MinusX()