SoEventGetNormalizedPosition Method |
Gets the normalized location of the cursor when the event occurred, relative to the specified viewport region.
Namespace: OIV.Inventor.EventsAssembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2024.2.2.0 (10.16.2.0)
Syntax public SbVec2f GetNormalizedPosition(
SbViewportRegion vpRgn
)
Public Function GetNormalizedPosition (
vpRgn As SbViewportRegion
) As SbVec2f
public:
SbVec2f GetNormalizedPosition(
SbViewportRegion vpRgn
)
member GetNormalizedPosition :
vpRgn : SbViewportRegion -> SbVec2f
Parameters
- vpRgn
- Type: OIV.InventorSbViewportRegion
Return Value
Type:
SbVec2fRemarks The returned value will lie between 0.0 and 1.0.
Position should be set for all events, but that may not be possible for some events in some display environments. If position was not available, the method returns 0,0.
See Also