This repository has been archived by the owner on Aug 11, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added CardinalAxis and FlattenMode enum definitions (#261)
* Added CardinalAxis and FlattenMode enum definitions * removes specific language to bounding box
- Loading branch information
1 parent
f6c181f
commit 1f386a6
Showing
4 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
{ | ||
/// <summary> | ||
/// Enum which describes cardinal axes | ||
/// </summary> | ||
[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, | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
{ | ||
/// <summary> | ||
/// Enum which describes how an object is to be flattened. | ||
/// </summary> | ||
public enum FlattenMode | ||
{ | ||
DoNotFlatten = 0, | ||
/// <summary> | ||
/// Flatten the X axis | ||
/// </summary> | ||
FlattenX, | ||
/// <summary> | ||
/// Flatten the Y axis | ||
/// </summary> | ||
FlattenY, | ||
/// <summary> | ||
/// Flatten the Z axis | ||
/// </summary> | ||
FlattenZ, | ||
/// <summary> | ||
/// Flatten the smallest relative axis if it falls below threshold | ||
/// </summary> | ||
FlattenAuto, | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.