SbRotationSlerp Method (SbRotation, SbRotation, Single) |
Spherical linear interpolation: as t goes from 0 to 1,
returned value goes from rot0 to rot1.
Namespace: OIV.InventorAssembly: OIV.Inventor.SbLinear (in OIV.Inventor.SbLinear.dll) Version: 2025.1.0.Release.bbf67b7ce81225a791aa69eb415ebddead35829d
Syntaxpublic static SbRotation Slerp(
ref SbRotation rot0,
ref SbRotation rot1,
float t
)
Public Shared Function Slerp (
ByRef rot0 As SbRotation,
ByRef rot1 As SbRotation,
t As Single
) As SbRotation
public:
static SbRotation Slerp(
SbRotation% rot0,
SbRotation% rot1,
float t
)
static member Slerp :
rot0 : SbRotation byref *
rot1 : SbRotation byref *
t : float32 -> SbRotation
Parameters
- rot0
- Type: OIV.InventorSbRotation
Start rotation. - rot1
- Type: OIV.InventorSbRotation
End rotation. - t
- Type: SystemSingle
Interpolation factor between [0,1].
Return Value
Type:
SbRotationInterpolated rotation.
ExceptionsException | Condition |
---|
ArgumentOutOfRangeException | If t t%lt;0 or t%gt;1. |
See Also