Skip to content

Instantly share code, notes, and snippets.

@CameronVetter
Created January 26, 2017 03:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CameronVetter/5ffdccd53a17c58be3426069d2afc93f to your computer and use it in GitHub Desktop.
Save CameronVetter/5ffdccd53a17c58be3426069d2afc93f to your computer and use it in GitHub Desktop.
using HoloToolkit.Unity;
using UnityEngine;
public class PlacementResult
{
public PlacementResult(SpatialUnderstandingDllObjectPlacement.ObjectPlacementResult result, Vector3 dimensions, ObjectType objType)
{
_result = result;
Dimensions = dimensions;
ObjType = objType;
}
public Vector3 Position { get { return _result.Position; } }
public Vector3 Normal { get { return _result.Forward; } }
public Vector3 Dimensions { get; private set; }
public ObjectType ObjType { get; private set; }
private readonly SpatialUnderstandingDllObjectPlacement.ObjectPlacementResult _result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment