iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
ISCINearestPointProvider
@protocol ISCINearestPointProvider <ISCIAttachable>
Defines the interface with method for search of nearest point.
-
Performs search of nearest point in 2D.
Declaration
Objective-C
- (void)setNearestPoint2D:(nonnull SCIHitTestInfo *)hitTestResult x:(float)x y:(float)y hitTestRadius:(float)hitTestRadius;Swift
func setNearestPoint2D(_ hitTestResult: SCIHitTestInfo, x: Float, y: Float, hitTestRadius: Float)Parameters
hitTestResultThe
hit-testinfo to update.xThe
x coordinateofhit-testin pixels.yThe
y coordinateofhit-testin pixels.hitTestRadiusThe
hit-testradius in pixels. -
Performs search of nearest point in x direction only.
Declaration
Objective-C
- (void)setNearestHorizontalPointResult:(nonnull SCIHitTestInfo *)hitTestResult x:(float)x y:(float)y;Swift
func setNearestHorizontalPointResult(_ hitTestResult: SCIHitTestInfo, x: Float, y: Float)Parameters
hitTestResultThe hit test info to update.
xThe
x coordinateofhit-testin pixels.yThe
y coordinateofhit-testin pixel.
View on GitHub