Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Media3D / Matrix3DStack.cs / 1 / Matrix3DStack.cs
//---------------------------------------------------------------------------- // //// Copyright (c) Microsoft Corporation. All rights reserved. // // // Description: This is a super simple Matrix3DStack implementation. // MatrixStack (2D) is optimized to avoid boxig and copying // of structs. This was written as a stop-gap to address // a bug until we can use CodeGen here. // // History: // 1/19/2004 : [....] - Created // //--------------------------------------------------------------------------- using System; using System.Collections; using System.Collections.Generic; namespace System.Windows.Media.Media3D { // internal class Matrix3DStack { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- //------------------------------------------------------ // // Public Methods // //----------------------------------------------------- public void Clear() { _stack.Clear(); } public Matrix3D Pop() { Matrix3D top = Top; _stack.RemoveAt(_stack.Count - 1); return top; } ////// Empty => [matrix] /// tail | [top] => tail | [top] | [matrix * top] /// public void Push(Matrix3D matrix) { if (_stack.Count > 0) { matrix.Append(Top); } _stack.Add(matrix); } ////// stack = stack | [matrix] /// public void PushWithoutAccumulating(Matrix3D matrix) { _stack.Add(matrix); } //------------------------------------------------------ // // Public Properties // //------------------------------------------------------ public int Count { get { return _stack.Count; } } public bool IsEmpty { get { return (_stack.Count == 0); } } public Matrix3D Top { get { return _stack[_stack.Count - 1]; } } //----------------------------------------------------- // // Public Events // //------------------------------------------------------ //----------------------------------------------------- // // Private Fields // //----------------------------------------------------- #region Private Fields private readonly List_stack = new List (); #endregion Private Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OptionalRstParameters.cs
- EdmPropertyAttribute.cs
- WaitHandleCannotBeOpenedException.cs
- PathGradientBrush.cs
- ToolStripDropTargetManager.cs
- Line.cs
- Vector3D.cs
- TemplateControl.cs
- BaseValidator.cs
- ObjectDesignerDataSourceView.cs
- WebAdminConfigurationHelper.cs
- uribuilder.cs
- QueueException.cs
- XPathNodeIterator.cs
- ConnectionProviderAttribute.cs
- DESCryptoServiceProvider.cs
- SortDescription.cs
- XdrBuilder.cs
- BaseComponentEditor.cs
- PanelStyle.cs
- Parameter.cs
- Visitors.cs
- Parser.cs
- AxisAngleRotation3D.cs
- StructuralObject.cs
- DbConnectionPoolGroup.cs
- MethodCallConverter.cs
- EncoderParameters.cs
- CornerRadiusConverter.cs
- METAHEADER.cs
- ManifestBasedResourceGroveler.cs
- TypeSource.cs
- QueryInterceptorAttribute.cs
- HtmlProps.cs
- EventManager.cs
- AsyncResult.cs
- AvTraceFormat.cs
- OLEDB_Util.cs
- MutexSecurity.cs
- Process.cs
- RowToParametersTransformer.cs
- UrlPath.cs
- EDesignUtil.cs
- CqlLexerHelpers.cs
- ResourceReferenceExpression.cs
- XamlUtilities.cs
- TreeNodeCollection.cs
- TextEditorLists.cs
- RunClient.cs
- Debug.cs
- DataServiceContext.cs
- TypeSemantics.cs
- MimeWriter.cs
- CompoundFileStorageReference.cs
- RewritingPass.cs
- Label.cs
- X509CertificateValidationMode.cs
- TextFormattingConverter.cs
- RuntimeHandles.cs
- EditorZoneBase.cs
- ToolStripDropDownClosingEventArgs.cs
- BoolExpression.cs
- ScriptServiceAttribute.cs
- DataTableNewRowEvent.cs
- TabControlCancelEvent.cs
- SparseMemoryStream.cs
- BaseResourcesBuildProvider.cs
- ClientBuildManager.cs
- CaseStatement.cs
- EventMappingSettings.cs
- Statements.cs
- DecoderFallbackWithFailureFlag.cs
- ValidatorCollection.cs
- GorillaCodec.cs
- PropertyGridEditorPart.cs
- AnnotationComponentChooser.cs
- WebPartTransformerCollection.cs
- XmlTextReader.cs
- DataServiceStreamResponse.cs
- ForeignConstraint.cs
- WorkflowValidationFailedException.cs
- ServiceDescriptionData.cs
- SecurityVerifiedMessage.cs
- InsufficientMemoryException.cs
- COM2AboutBoxPropertyDescriptor.cs
- SmtpFailedRecipientException.cs
- DataObjectPastingEventArgs.cs
- TextRunCache.cs
- SchemaDeclBase.cs
- CheckedListBox.cs
- QilName.cs
- Adorner.cs
- ComboBoxDesigner.cs
- CounterSample.cs
- WebPartsPersonalizationAuthorization.cs
- BrushValueSerializer.cs
- PowerStatus.cs
- DrawListViewSubItemEventArgs.cs
- HttpCacheVaryByContentEncodings.cs
- WeakKeyDictionary.cs