Struct TMPParameterTypes.TypedVector2
- Namespace
- TMPEffects.Parameters
A Vector2 with a TMPParameterTypes.VectorType.
[Serializable]
public struct TMPParameterTypes.TypedVector2
- Inherited Members
Constructors
TypedVector2(VectorType, Vector2)
public TypedVector2(TMPParameterTypes.VectorType type, Vector2 vector)
Parameters
type
TMPParameterTypes.VectorTypevector
Vector2
Fields
type
The type of this vector.
public TMPParameterTypes.VectorType type
Field Value
vector
The raw vector.
public Vector2 vector
Field Value
- Vector2
Methods
ToDelta(CharData, IAnimatorDataProvider)
Get the delta defined by this vector, using the cData's initial position as reference position.
public Vector2 ToDelta(CharData cData, IAnimatorDataProvider animatorData)
Parameters
cData
CharDataanimatorData
IAnimatorDataProvider
Returns
- Vector2
The delta defined by this vector and the cData's initial position.
ToDelta(CharData, IAnimatorDataProvider, Vector2)
Get the delta defined by this vector and the reference position.
public Vector2 ToDelta(CharData cData, IAnimatorDataProvider animatorData, Vector2 referencePos)
Parameters
cData
CharDataanimatorData
IAnimatorDataProviderreferencePos
Vector2
Returns
- Vector2
The delta defined by this vector and the cData's initial position.
ToDelta(CharData, IAnimationContext)
Get the delta defined by this vector, using the cData's initial position as reference position.
public Vector2 ToDelta(CharData cData, IAnimationContext context)
Parameters
cData
CharDatacontext
IAnimationContext
Returns
- Vector2
The delta defined by this vector and the cData's initial position.
ToDelta(CharData, IAnimationContext, Vector2)
Get the delta defined by this vector and the reference position.
public Vector2 ToDelta(CharData cData, IAnimationContext context, Vector2 referencePos)
Parameters
cData
CharDatacontext
IAnimationContextreferencePos
Vector2
Returns
- Vector2
The delta defined by this vector and the reference position.
ToPosition(CharData, IAnimatorDataProvider)
Get the position defined by this vector, using the cData's initial position as reference position.
public Vector2 ToPosition(CharData cData, IAnimatorDataProvider animatorData)
Parameters
cData
CharDataanimatorData
IAnimatorDataProvider
Returns
- Vector2
The position defined by this vector and the reference position.
ToPosition(CharData, IAnimatorDataProvider, Vector2)
Get the position defined by this vector and the reference position.
public Vector2 ToPosition(CharData cData, IAnimatorDataProvider animatorData, Vector2 referencePos)
Parameters
cData
CharDataanimatorData
IAnimatorDataProviderreferencePos
Vector2
Returns
- Vector2
The position defined by this vector and the reference position.
ToPosition(CharData, IAnimationContext)
Get the position defined by this vector, using the cData's initial position as reference position.
public Vector2 ToPosition(CharData cData, IAnimationContext context)
Parameters
cData
CharDatacontext
IAnimationContext
Returns
- Vector2
The position defined by this vector and the cData's initial position.
ToPosition(CharData, IAnimationContext, Vector2)
Get the position defined by this vector and the reference position.
public Vector2 ToPosition(CharData cData, IAnimationContext context, Vector2 referencePos)
Parameters
cData
CharDatacontext
IAnimationContextreferencePos
Vector2
Returns
- Vector2
The position defined by this vector and the reference position.
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
Operators
implicit operator TypedVector2(TypedVector3)
public static implicit operator TMPParameterTypes.TypedVector2(TMPParameterTypes.TypedVector3 v)