Exemplo n.º 1
0
 public serializableUnityARPlaneAnchor(serializableUnityARMatrix4x4 wt, SerializableVector4 ctr, SerializableVector4 ext, ARPlaneAnchorAlignment apaa, byte[] idstr)
 {
     worldTransform = wt;
     center         = ctr;
     extent         = ext;
     planeAlignment = apaa;
     identifierStr  = idstr;
 }
Exemplo n.º 2
0
        /// <summary>
        /// Converts an <see cref="ARPlaneAnchorAlignment"/> into a <see cref="PlaneAnchorType"/>.
        /// </summary>
        /// <param name="alignment">The plane alignment value to be converted</param>
        /// <returns>Returns an <see cref="PlaneAnchorType"/></returns>
        internal static PlaneAnchorType ToWave(this ARPlaneAnchorAlignment alignment)
        {
            switch (alignment)
            {
            default:
            case ARPlaneAnchorAlignment.Horizontal:
                return(PlaneAnchorType.HorizontalUpwardFacing);

            case ARPlaneAnchorAlignment.Vertical:
                return(PlaneAnchorType.Vertical);
            }
        }