public serializableUnityARPlaneAnchor(serializableUnityARMatrix4x4 wt, SerializableVector4 ctr, SerializableVector4 ext, ARPlaneAnchorAlignment apaa, byte[] idstr) { worldTransform = wt; center = ctr; extent = ext; planeAlignment = apaa; identifierStr = idstr; }
/// <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); } }