Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
Edge.h
Go to the documentation of this file.
1
// Copyright Epic Games, Inc. All Rights Reserved.
2
3
#
pragma
once
4
5
#
include
"CoreTypes.h"
6
#
include
"Math/Vector.h"
7
8
/**
9
* Implements an edge consisting of two vertices.
10
*/
11
struct
FEdge
12
{
13
/** Holds the edge vertices. */
14
FVector Vertex[2];
15
16
/** Holds a temporary variable used when creating arrays of unique edges. */
17
int32 Count;
18
19
public
:
20
21
/** Default constructor (no initialization). */
22
FEdge () { }
23
24
/**
25
* Creates and initializes a new edge from two vertices.
26
*
27
* @param V1 The first vertex.
28
* @param V2 The second vertex.
29
*/
30
FEdge (FVector V1, FVector V2)
31
{
32
Vertex[0] = V1;
33
Vertex[1] = V2;
34
Count = 0;
35
}
36
37
public
:
38
39
/**
40
* Compares this edge with another.
41
*
42
* @param E The other edge.
43
* @return true if the two edges are identical, false otherwise.
44
*/
45
bool
operator== (
const
FEdge& E)
const
46
{
47
return
(((E.Vertex[0] == Vertex[0]) && (E.Vertex[1] == Vertex[1])) || ((E.Vertex[0] == Vertex[1]) && (E.Vertex[1] == Vertex[0])));
48
}
49
};
Downloads
ArkServerAPI_NEW
ASA
AsaApi
AsaApi
Core
Public
API
UE
Math
Edge.h
Generated by
1.10.0