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

Added CardinalAxis and FlattenMode enum definitions #261

Merged
merged 2 commits into from
Aug 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

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.