15 instantiations of Quaternion
PresentationCore (13)
Core\CSharp\MS\Internal\AnimatedTypeHelpers.cs (1)
559return new Quaternion(value.Axis, value.Angle * factor);
Core\CSharp\System\Windows\Media3D\AxisAngleRotation3D.cs (2)
85_cachedQuaternionValue = new Quaternion(axis, Angle); 122internal static readonly Quaternion c_dirtyQuaternion = new Quaternion(
Core\CSharp\System\Windows\Media3D\Generated\Quaternion.cs (1)
212value = new Quaternion(
Core\CSharp\System\Windows\Media3D\Quaternion.cs (9)
295return new Quaternion(0,0,0,2); 312return new Quaternion(left._x + right._x, 342return new Quaternion(0,0,0,0); 354return new Quaternion(-right._x, -right._y, -right._z, 1 - right._w); 358return new Quaternion(left._x - right._x, 397Quaternion result = new Quaternion(x,y,z,w); 565to = new Quaternion(-from.Y, from.X, -from.W, from.Z); 590return new Quaternion(scaleFrom*from._x + scaleTo*to._x, 761Quaternion q = new Quaternion(0,0,0,1);
PresentationFramework (2)
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8004bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.Quaternion(); };
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
1482case KnownElements.Quaternion: o = new System.Windows.Media.Media3D.Quaternion(); break;
179 references to Quaternion
PresentationCore (176)
Core\CSharp\MS\Internal\AnimatedTypeHelpers.cs (18)
108internal static Quaternion InterpolateQuaternion(Quaternion from, Quaternion to, Double progress, bool useShortestPath) 110return Quaternion.Slerp(from, to, progress, useShortestPath); 207internal static Quaternion AddQuaternion(Quaternion value1, Quaternion value2) 309internal static Quaternion SubtractQuaternion(Quaternion value1, Quaternion value2) 446internal static Double GetSegmentLengthQuaternion(Quaternion from, Quaternion to) 557internal static Quaternion ScaleQuaternion(Quaternion value, Double factor) 680internal static bool IsValidAnimationValueQuaternion(Quaternion value) 802internal static Quaternion GetZeroValueQuaternion(Quaternion baseValue) 804return Quaternion.Identity;
Core\CSharp\System\Windows\Media\Animation\AnimationStorage.cs (1)
1145else if (type == typeof(Quaternion))
Core\CSharp\System\Windows\Media\Animation\Generated\DiscreteKeyFrames.cs (4)
1040public DiscreteQuaternionKeyFrame(Quaternion value) 1048public DiscreteQuaternionKeyFrame(Quaternion value, KeyTime keyTime) 1076protected override Quaternion InterpolateValueCore(Quaternion baseValue, double keyFrameProgress)
Core\CSharp\System\Windows\Media\Animation\Generated\EasingKeyFrames.cs (5)
1176public EasingQuaternionKeyFrame(Quaternion value) 1185public EasingQuaternionKeyFrame(Quaternion value, KeyTime keyTime) 1195public EasingQuaternionKeyFrame(Quaternion value, KeyTime keyTime, IEasingFunction easingFunction) 1224protected override Quaternion InterpolateValueCore(Quaternion baseValue, double keyFrameProgress)
Core\CSharp\System\Windows\Media\Animation\Generated\KeyFrames.cs (10)
1920protected QuaternionKeyFrame(Quaternion value) 1929protected QuaternionKeyFrame(Quaternion value, KeyTime keyTime) 1972typeof(Quaternion), 1987Value = (Quaternion)value; 1994public Quaternion Value 1998return (Quaternion)GetValue(ValueProperty); 2015public Quaternion InterpolateValue( 2016Quaternion baseValue, 2036protected abstract Quaternion InterpolateValueCore( 2037Quaternion baseValue,
Core\CSharp\System\Windows\Media\Animation\Generated\LinearKeyFrames.cs (4)
744public LinearQuaternionKeyFrame(Quaternion value) 752public LinearQuaternionKeyFrame(Quaternion value, KeyTime keyTime) 778protected override Quaternion InterpolateValueCore(Quaternion baseValue, double keyFrameProgress)
Core\CSharp\System\Windows\Media\Animation\Generated\QuaternionAnimation.cs (36)
45private Quaternion[] _keyValues; 60Type typeofProp = typeof(Quaternion?); 69new PropertyMetadata((Quaternion?)null, propCallback), 76new PropertyMetadata((Quaternion?)null, propCallback), 83new PropertyMetadata((Quaternion?)null, propCallback), 107public QuaternionAnimation(Quaternion toValue, Duration duration) 119public QuaternionAnimation(Quaternion toValue, Duration duration, FillBehavior fillBehavior) 132public QuaternionAnimation(Quaternion fromValue, Quaternion toValue, Duration duration) 145public QuaternionAnimation(Quaternion fromValue, Quaternion toValue, Duration duration, FillBehavior fillBehavior) 218protected override Quaternion GetCurrentValueCore(Quaternion defaultOriginValue, Quaternion defaultDestinationValue, AnimationClock animationClock) 235Quaternion from = Quaternion.Identity; 236Quaternion to = Quaternion.Identity; 237Quaternion accumulated = Quaternion.Identity; 238Quaternion foundation = Quaternion.Identity; 352Quaternion accumulator = AnimatedTypeHelpers.SubtractQuaternion(to, from); 377_keyValues = new Quaternion[2]; 384_keyValues = new Quaternion[2]; 391_keyValues = new Quaternion[1]; 398_keyValues = new Quaternion[1]; 404_keyValues = new Quaternion[1]; 425Quaternion? typedValue = (Quaternion?)value; 445public Quaternion? From 449return (Quaternion?)GetValue(FromProperty); 465public Quaternion? To 469return (Quaternion?)GetValue(ToProperty); 485public Quaternion? By 489return (Quaternion?)GetValue(ByProperty);
Core\CSharp\System\Windows\Media\Animation\Generated\QuaternionAnimationBase.cs (9)
103return GetCurrentValue((Quaternion)defaultOriginValue, (Quaternion)defaultDestinationValue, animationClock); 115return typeof(Quaternion); 152public Quaternion GetCurrentValue(Quaternion defaultOriginValue, Quaternion defaultDestinationValue, AnimationClock animationClock) 215protected abstract Quaternion GetCurrentValueCore(Quaternion defaultOriginValue, Quaternion defaultDestinationValue, AnimationClock animationClock);
Core\CSharp\System\Windows\Media\Animation\Generated\QuaternionAnimationUsingKeyFrames.cs (8)
331protected sealed override Quaternion GetCurrentValueCore( 332Quaternion defaultOriginValue, 333Quaternion defaultDestinationValue, 359Quaternion currentIterationValue; 395Quaternion fromValue; 643private Quaternion GetResolvedKeyFrameValue(Int32 resolvedKeyFrameIndex) 954Quaternion prevKeyValue = _keyFrames[index - 1].Value; 958Quaternion currentKeyValue = _keyFrames[index].Value;
Core\CSharp\System\Windows\Media\Animation\Generated\QuaternionIndependentAnimationStorage.cs (2)
61Quaternion tempValue = (Quaternion)dobj.GetValue(_dependencyProperty);
Core\CSharp\System\Windows\Media\Animation\Generated\SplineKeyFrames.cs (5)
1248public SplineQuaternionKeyFrame(Quaternion value) 1257public SplineQuaternionKeyFrame(Quaternion value, KeyTime keyTime) 1267public SplineQuaternionKeyFrame(Quaternion value, KeyTime keyTime, KeySpline keySpline) 1301protected override Quaternion InterpolateValueCore(Quaternion baseValue, double keyFrameProgress)
Core\CSharp\System\Windows\Media\Composition.cs (1)
82internal static MilQuaternionF QuaternionToMilQuaternionF(Quaternion q)
Core\CSharp\System\Windows\Media3D\AxisAngleRotation3D.cs (4)
71internal override Quaternion InternalQuaternion 91_cachedQuaternionValue = Quaternion.Identity; 117private Quaternion _cachedQuaternionValue = c_dirtyQuaternion; 122internal static readonly Quaternion c_dirtyQuaternion = new Quaternion(
Core\CSharp\System\Windows\Media3d\Converters\Generated\QuaternionValueSerializer.cs (5)
62if (!(value is Quaternion)) 78return Quaternion.Parse(value ); 92if (value is Quaternion) 94Quaternion instance = (Quaternion) value;
Core\CSharp\System\Windows\Media3D\Generated\Quaternion.cs (14)
73public static bool operator == (Quaternion quaternion1, Quaternion quaternion2) 99public static bool operator != (Quaternion quaternion1, Quaternion quaternion2) 115public static bool Equals (Quaternion quaternion1, Quaternion quaternion2) 143if ((null == o) || !(o is Quaternion)) 148Quaternion value = (Quaternion)o; 149return Quaternion.Equals(this,value); 163public bool Equals(Quaternion value) 165return Quaternion.Equals(this, value); 194public static Quaternion Parse(string source) 200Quaternion value;
Core\CSharp\System\Windows\Media3D\Generated\QuaternionConverter.cs (4)
106return Quaternion.Parse(source); 128if (destinationType != null && value is Quaternion) 130Quaternion instance = (Quaternion)value;
Core\CSharp\System\Windows\Media3D\Generated\QuaternionRotation3D.cs (8)
90target._cachedQuaternionValue = (Quaternion)e.NewValue; 102public Quaternion Quaternion 282private Quaternion _cachedQuaternionValue = Quaternion.Identity; 286internal static Quaternion s_Quaternion = Quaternion.Identity; 313typeof(Quaternion), 315Quaternion.Identity,
Core\CSharp\System\Windows\Media3D\Matrix3D.cs (5)
221public void Rotate(Quaternion quaternion) 232public void RotatePrepend(Quaternion quaternion) 244public void RotateAt(Quaternion quaternion, Point3D center) 254public void RotateAtPrepend(Quaternion quaternion, Point3D center) 1093internal static Matrix3D CreateRotationMatrix(ref Quaternion quaternion, ref Point3D center)
Core\CSharp\System\Windows\Media3D\Quaternion.cs (29)
119public static Quaternion Identity 289public static Quaternion operator +(Quaternion left, Quaternion right) 325public static Quaternion Add(Quaternion left, Quaternion right) 336public static Quaternion operator -(Quaternion left, Quaternion right) 371public static Quaternion Subtract(Quaternion left, Quaternion right) 382public static Quaternion operator *(Quaternion left, Quaternion right) 397Quaternion result = new Quaternion(x,y,z,w); 408public static Quaternion Multiply(Quaternion left, Quaternion right) 474public static Quaternion Slerp(Quaternion from, Quaternion to, double t) 489public static Quaternion Slerp(Quaternion from, Quaternion to, double t, bool useShortestPath) 758private static Quaternion GetIdentity() 761Quaternion q = new Quaternion(0,0,0,1); 771private static Quaternion s_identity = GetIdentity();
Core\CSharp\System\Windows\Media3D\QuaternionRotation3D.cs (2)
39public QuaternionRotation3D(Quaternion quaternion) 56internal override Quaternion InternalQuaternion { get { return _cachedQuaternionValue; } }
Core\CSharp\System\Windows\Media3D\RotateTransform3D.cs (1)
116Quaternion quaternion = rotation.InternalQuaternion;
Core\CSharp\System\Windows\Media3D\Rotation3D.cs (1)
78internal abstract Quaternion InternalQuaternion
PresentationFramework (3)
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
586case 494: t = () => typeof(Quaternion); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8002typeof(System.Windows.Media.Media3D.Quaternion),
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
6038case KnownElements.Quaternion: t = typeof(System.Windows.Media.Media3D.Quaternion); break;