forked from progrium/darwinkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtrajectory_observation.gen.go
90 lines (74 loc) · 2.84 KB
/
trajectory_observation.gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
// Code generated by DarwinKit. DO NOT EDIT.
package vision
import (
"unsafe"
"github.com/progrium/macdriver/objc"
)
// The class instance for the [TrajectoryObservation] class.
var TrajectoryObservationClass = _TrajectoryObservationClass{objc.GetClass("VNTrajectoryObservation")}
type _TrajectoryObservationClass struct {
objc.Class
}
// An interface definition for the [TrajectoryObservation] class.
type ITrajectoryObservation interface {
IObservation
EquationCoefficients() objc.Object
DetectedPoints() []Point
MovingAverageRadius() float64
ProjectedPoints() []Point
}
// An observation that describes a detected trajectory. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vntrajectoryobservation?language=objc
type TrajectoryObservation struct {
Observation
}
func TrajectoryObservationFrom(ptr unsafe.Pointer) TrajectoryObservation {
return TrajectoryObservation{
Observation: ObservationFrom(ptr),
}
}
func (tc _TrajectoryObservationClass) Alloc() TrajectoryObservation {
rv := objc.Call[TrajectoryObservation](tc, objc.Sel("alloc"))
return rv
}
func (tc _TrajectoryObservationClass) New() TrajectoryObservation {
rv := objc.Call[TrajectoryObservation](tc, objc.Sel("new"))
rv.Autorelease()
return rv
}
func NewTrajectoryObservation() TrajectoryObservation {
return TrajectoryObservationClass.New()
}
func (t_ TrajectoryObservation) Init() TrajectoryObservation {
rv := objc.Call[TrajectoryObservation](t_, objc.Sel("init"))
return rv
}
// The coefficients of the parabolic equation. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vntrajectoryobservation/3564825-equationcoefficients?language=objc
func (t_ TrajectoryObservation) EquationCoefficients() objc.Object {
rv := objc.Call[objc.Object](t_, objc.Sel("equationCoefficients"))
return rv
}
// The centroid points of the detected contour along the trajectory. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vntrajectoryobservation/3564824-detectedpoints?language=objc
func (t_ TrajectoryObservation) DetectedPoints() []Point {
rv := objc.Call[[]Point](t_, objc.Sel("detectedPoints"))
return rv
}
// The moving average radius of the object the request is tracking. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vntrajectoryobservation/3751001-movingaverageradius?language=objc
func (t_ TrajectoryObservation) MovingAverageRadius() float64 {
rv := objc.Call[float64](t_, objc.Sel("movingAverageRadius"))
return rv
}
// The centroids of the calculated trajectory from the detected points. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vntrajectoryobservation/3564826-projectedpoints?language=objc
func (t_ TrajectoryObservation) ProjectedPoints() []Point {
rv := objc.Call[[]Point](t_, objc.Sel("projectedPoints"))
return rv
}