mirror of
https://github.com/Cardidi/dotween-upm-fork.git
synced 2025-12-20 17:26:03 +08:00
[DeExtensions] Added Vector3.RotateAroundPivot
This commit is contained in:
parent
759292859c
commit
90885a1906
@ -228,7 +228,7 @@
|
||||
</member>
|
||||
<member name="M:DG.Tweening.Core.Utils.GetLooseScriptType(System.String)">
|
||||
<summary>
|
||||
Looks for the type withing all possible project assembly names
|
||||
Looks for the type within all possible project assembly names
|
||||
</summary>
|
||||
</member>
|
||||
<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
|
||||
guid: d3e15b806a8368742ba6f10e794d7b76
|
||||
timeCreated: 1551372288
|
||||
timeCreated: 1551466119
|
||||
licenseType: Pro
|
||||
TextureImporter:
|
||||
fileIDToRecycleName: {}
|
||||
|
||||
@ -40,6 +40,11 @@ namespace DG.Tweening.Core
|
||||
return ang;
|
||||
}
|
||||
|
||||
internal static Vector3 RotateAroundPivot(Vector3 point, Vector3 pivot, Quaternion rotation)
|
||||
{
|
||||
return rotation * (point - pivot) + pivot;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
@ -52,7 +57,7 @@ namespace DG.Tweening.Core
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks for the type withing all possible project assembly names
|
||||
/// Looks for the type within all possible project assembly names
|
||||
/// </summary>
|
||||
internal static Type GetLooseScriptType(string typeName)
|
||||
{
|
||||
|
||||
@ -228,7 +228,7 @@
|
||||
</member>
|
||||
<member name="M:DG.Tweening.Core.Utils.GetLooseScriptType(System.String)">
|
||||
<summary>
|
||||
Looks for the type withing all possible project assembly names
|
||||
Looks for the type within all possible project assembly names
|
||||
</summary>
|
||||
</member>
|
||||
<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