SbViewVolumeGetWorldToScreenScale Method (SbVec3f, Single) |
Returns a scale factor that would scale a unit sphere centered at
worldCenter.
Namespace: OIV.InventorAssembly: OIV.Inventor.SbLinear (in OIV.Inventor.SbLinear.dll) Version: 2024.2.2.Release.778f4cc64de03c89c1282c66aa1f73c0e9a1408b
Syntax public float GetWorldToScreenScale(
SbVec3f worldCenter,
float radius
)
Public Function GetWorldToScreenScale (
worldCenter As SbVec3f,
radius As Single
) As Single
public:
float GetWorldToScreenScale(
SbVec3f worldCenter,
float radius
)
member GetWorldToScreenScale :
worldCenter : SbVec3f *
radius : float32 -> float32
Parameters
- worldCenter
- Type: OIV.InventorSbVec3f
Center in world coordinates. - radius
- Type: SystemSingle
Radius in normalized screen coordinates.
Return Value
Type:
SingleScale factor.
Remarks
The sphere would appear to have the
given radius in normalized screen coordinates
when projected onto the near plane.
See Also