diff --git a/Definitions/Utilities/CardinalAxis.cs b/Definitions/Utilities/CardinalAxis.cs new file mode 100644 index 000000000..426fe2cb9 --- /dev/null +++ b/Definitions/Utilities/CardinalAxis.cs @@ -0,0 +1,22 @@ +// Copyright (c) XRTK. All rights reserved. +// Licensed under the MIT License. See LICENSE in the project root for license information. + +using System; + +namespace XRTK.Definitions.Utilities +{ + /// + /// Enum which describes cardinal axes + /// + [Flags] + public enum CardinalAxis + { + // Note: Because of the way Unity handles flags + // We didn't add a default enum definition nor everything. + // Everything = -1 + // None = 0, + X = 1, + Y = 2, + Z = 3, + } +} \ No newline at end of file diff --git a/Definitions/Utilities/CardinalAxis.cs.meta b/Definitions/Utilities/CardinalAxis.cs.meta new file mode 100644 index 000000000..392a79d52 --- /dev/null +++ b/Definitions/Utilities/CardinalAxis.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5045dbcb6d2141d49bc1eee059ac8066 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {fileID: 2800000, guid: 8ac5213854cf4dbabd140decf8df1946, type: 3} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Definitions/Utilities/FlattenMode.cs b/Definitions/Utilities/FlattenMode.cs new file mode 100644 index 000000000..d54734f5f --- /dev/null +++ b/Definitions/Utilities/FlattenMode.cs @@ -0,0 +1,29 @@ +// Copyright (c) XRTK. All rights reserved. +// Licensed under the MIT License. See LICENSE in the project root for license information. + +namespace XRTK.Definitions.Utilities +{ + /// + /// Enum which describes how an object is to be flattened. + /// + public enum FlattenMode + { + DoNotFlatten = 0, + /// + /// Flatten the X axis + /// + FlattenX, + /// + /// Flatten the Y axis + /// + FlattenY, + /// + /// Flatten the Z axis + /// + FlattenZ, + /// + /// Flatten the smallest relative axis if it falls below threshold + /// + FlattenAuto, + } +} \ No newline at end of file diff --git a/Definitions/Utilities/FlattenMode.cs.meta b/Definitions/Utilities/FlattenMode.cs.meta new file mode 100644 index 000000000..1cc051d71 --- /dev/null +++ b/Definitions/Utilities/FlattenMode.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7da0a2214976083499fa1cbb7d8b0396 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {fileID: 2800000, guid: 8ac5213854cf4dbabd140decf8df1946, type: 3} + userData: + assetBundleName: + assetBundleVariant: