mirror of
https://github.com/Cardidi/dotween-upm-fork.git
synced 2025-12-21 01:36:05 +08:00
[DeExtensions] Added Vector3.RotateAroundPivot
This commit is contained in:
parent
759292859c
commit
90885a1906
@ -228,7 +228,7 @@
|
|||||||
</member>
|
</member>
|
||||||
<member name="M:DG.Tweening.Core.Utils.GetLooseScriptType(System.String)">
|
<member name="M:DG.Tweening.Core.Utils.GetLooseScriptType(System.String)">
|
||||||
<summary>
|
<summary>
|
||||||
Looks for the type withing all possible project assembly names
|
Looks for the type within all possible project assembly names
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
<member name="T:DG.Tweening.Color2">
|
<member name="T:DG.Tweening.Color2">
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,6 +1,6 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: d3e15b806a8368742ba6f10e794d7b76
|
guid: d3e15b806a8368742ba6f10e794d7b76
|
||||||
timeCreated: 1551372288
|
timeCreated: 1551466119
|
||||||
licenseType: Pro
|
licenseType: Pro
|
||||||
TextureImporter:
|
TextureImporter:
|
||||||
fileIDToRecycleName: {}
|
fileIDToRecycleName: {}
|
||||||
|
|||||||
@ -40,6 +40,11 @@ namespace DG.Tweening.Core
|
|||||||
return ang;
|
return ang;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
internal static Vector3 RotateAroundPivot(Vector3 point, Vector3 pivot, Quaternion rotation)
|
||||||
|
{
|
||||||
|
return rotation * (point - pivot) + pivot;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Uses approximate equality on each axis instead of Unity's Vector3 equality,
|
/// Uses approximate equality on each axis instead of Unity's Vector3 equality,
|
||||||
/// because the latter fails (in some cases) when assigning a Vector3 to a transform.position and then checking it.
|
/// because the latter fails (in some cases) when assigning a Vector3 to a transform.position and then checking it.
|
||||||
@ -52,7 +57,7 @@ namespace DG.Tweening.Core
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks for the type withing all possible project assembly names
|
/// Looks for the type within all possible project assembly names
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static Type GetLooseScriptType(string typeName)
|
internal static Type GetLooseScriptType(string typeName)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -228,7 +228,7 @@
|
|||||||
</member>
|
</member>
|
||||||
<member name="M:DG.Tweening.Core.Utils.GetLooseScriptType(System.String)">
|
<member name="M:DG.Tweening.Core.Utils.GetLooseScriptType(System.String)">
|
||||||
<summary>
|
<summary>
|
||||||
Looks for the type withing all possible project assembly names
|
Looks for the type within all possible project assembly names
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
<member name="T:DG.Tweening.Color2">
|
<member name="T:DG.Tweening.Color2">
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user