DefaultTransformUtilities

Warning

This documentation is for an implementation of a service. This class is not meant to be used directly; instead use the Protogame.ITransformUtilities service via dependency injection to access this functionality.

Information documented here may not be up to date.

class DefaultTransformUtilities : System.Object, Protogame.ITransformUtilities

The default implementation of T:Protogame.ITransformUtilities.

public Protogame.ITransform CreateFromSRTMatrix(Vector3 localScale, Quaternion localRotation, Vector3 localPosition)
Parameters:
  • localScale (Microsoft.Xna.Framework.Vector3) –
  • localRotation (Microsoft.Xna.Framework.Quaternion) –
  • localPosition (Microsoft.Xna.Framework.Vector3) –
public Protogame.ITransform CreateFromModifiedSRTTransform(Protogame.ITransform existingTransform, Vector3 scaleFactor, Quaternion appliedRotation, Vector3 addedPosition)
Parameters:
  • existingTransform (Protogame.ITransform) –
  • scaleFactor (Microsoft.Xna.Framework.Vector3) –
  • appliedRotation (Microsoft.Xna.Framework.Quaternion) –
  • addedPosition (Microsoft.Xna.Framework.Vector3) –
public Protogame.ITransform CreateFromModifiedSRTFinalTransform(Protogame.IFinalTransform existingFinalTransform, Vector3 scaleFactor, Quaternion appliedRotation, Vector3 addedPosition)
Parameters:
  • existingFinalTransform (Protogame.IFinalTransform) –
  • scaleFactor (Microsoft.Xna.Framework.Vector3) –
  • appliedRotation (Microsoft.Xna.Framework.Quaternion) –
  • addedPosition (Microsoft.Xna.Framework.Vector3) –
public Protogame.ITransform CreateFromCustomMatrix(Matrix localMatrix)
Parameters:
  • localMatrix (Microsoft.Xna.Framework.Matrix) –
public Protogame.ITransform CreateFromDependencyInjection(IContext dependencyInjectionContext)
Parameters:
  • dependencyInjectionContext (Protoinject.IContext) –
public Protogame.ITransform CreateLocalPosition(float x, float y, float z)
Parameters:
  • x (float) –
  • y (float) –
  • z (float) –
public Protogame.ITransform CreateLocalPosition(Vector3 localPosition)
Parameters:
  • localPosition (Microsoft.Xna.Framework.Vector3) –