MeshLib C++ Docs
Loading...
Searching...
No Matches
MRMeshC/MRVector3.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMeshFwd.h"
4
6
8typedef struct MRVector3f
9{
10 float x;
11 float y;
12 float z;
14
17
20
23
26
29
31
34
37
40
43
45typedef struct MRVector3i
46{
47 int x;
48 int y;
49 int z;
51
54
57
60
63
#define MR_EXTERN_C_BEGIN
Definition MRMeshC/MRMeshFwd.h:26
#define MR_EXTERN_C_END
Definition MRMeshC/MRMeshFwd.h:27
#define MRMESHC_API
Definition MRMeshC/MRMeshFwd.h:19
MRMESHC_API MRVector3f mrVector3fDiagonal(float a)
(a, a, a)
MRMESHC_API MRVector3f mrVector3fAdd(const MRVector3f *a, const MRVector3f *b)
adds two vectors
MRMESHC_API MRVector3i mrVector3iPlusZ(void)
(0, 0, 1)
MRMESHC_API MRVector3f mrVector3fSub(const MRVector3f *a, const MRVector3f *b)
MRMESHC_API float mrVector3fLengthSq(const MRVector3f *v)
squared length of the vector
MRMESHC_API float mrVector3fLength(const MRVector3f *v)
length of the vector
MRMESHC_API MRVector3f mrVector3fPlusZ(void)
(0, 0, 1)
MRMESHC_API MRVector3f mrVector3fPlusX(void)
(1, 0, 0)
MRMESHC_API MRVector3i mrVector3iPlusX(void)
(1, 0, 0)
MRMESHC_API MRVector3i mrVector3iDiagonal(float a)
(a, a, a)
MRMESHC_API MRVector3f mrVector3fPlusY(void)
(0, 1, 0)
MRMESHC_API MRVector3f mrVector3fMulScalar(const MRVector3f *a, float b)
multiplies a vector by a scalar value
MRVector3f MRTriangle3f[3]
a set of 3 vectors; useful for representing a face via its vertex coordinates
Definition MRMeshC/MRVector3.h:42
MR_EXTERN_C_BEGIN struct MRVector3f MRVector3f
three-dimensional vector of floats
MRMESHC_API MRVector3i mrVector3iPlusY(void)
(0, 1, 0)
struct MRVector3i MRVector3i
three-dimensional vector of ints
three-dimensional vector of floats
Definition MRMeshC/MRVector3.h:9
float y
Definition MRMeshC/MRVector3.h:11
float x
Definition MRMeshC/MRVector3.h:10
float z
Definition MRMeshC/MRVector3.h:12
three-dimensional vector of ints
Definition MRMeshC/MRVector3.h:46
int z
Definition MRMeshC/MRVector3.h:49
int y
Definition MRMeshC/MRVector3.h:48
int x
Definition MRMeshC/MRVector3.h:47