Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

Commit

Permalink
Added CardinalAxis and FlattenMode enum definitions (#261)
Browse files Browse the repository at this point in the history
* Added CardinalAxis and FlattenMode enum definitions

* removes specific language to bounding box
  • Loading branch information
StephenHodgson authored and SimonDarksideJ committed Aug 6, 2019
1 parent f6c181f commit 1f386a6
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Definitions/Utilities/CardinalAxis.cs
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,
}
}
11 changes: 11 additions & 0 deletions Definitions/Utilities/CardinalAxis.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions Definitions/Utilities/FlattenMode.cs
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,
}
}
11 changes: 11 additions & 0 deletions Definitions/Utilities/FlattenMode.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1f386a6

Please sign in to comment.