public static PointUV GetNoteLocation(INote note, HorizontalType horizontalType, VerticalType verticalType) { double U = 0, V = 0; if (horizontalType == HorizontalType.Left) { U = note.GetLocation(TextPoint.LeftSide).U; } else if (horizontalType == HorizontalType.Right) { Debug.Fail("Note width not implemented"); } else if (horizontalType == HorizontalType.Center) { Debug.Fail("Note width not implemented"); } else { Debug.Fail("Case not handled"); } if (verticalType == VerticalType.Bottom) { V = note.GetLocation(TextPoint.BottomSide).V; } else if (verticalType == VerticalType.Top) { Debug.Fail("Note height not implemented"); } else if (verticalType == VerticalType.Middle) { Debug.Fail("Note height not implemented"); } else { Debug.Fail("Case not handled"); } return(PointUV.Create(U, V)); }
public static PointUV GetNoteLocation(INote note, HorizontalType horizontalType, VerticalType verticalType) { double U = 0, V = 0; if (horizontalType == HorizontalType.Left) U = note.GetLocation(TextPoint.LeftSide).U; else if (horizontalType == HorizontalType.Right) Debug.Fail("Note width not implemented"); else if (horizontalType == HorizontalType.Center) Debug.Fail("Note width not implemented"); else Debug.Fail("Case not handled"); if (verticalType == VerticalType.Bottom) V = note.GetLocation(TextPoint.BottomSide).V; else if (verticalType == VerticalType.Top) Debug.Fail("Note height not implemented"); else if (verticalType == VerticalType.Middle) Debug.Fail("Note height not implemented"); else Debug.Fail("Case not handled"); return PointUV.Create(U, V); }