18 lines
423 B
Go
18 lines
423 B
Go
|
package repository
|
||
|
|
||
|
import "joylink.club/rtsssimulation/repository/model/proto"
|
||
|
|
||
|
type SectionalCurvature struct {
|
||
|
Identity
|
||
|
kms []*proto.Kilometer
|
||
|
radius int32 //半径 mm
|
||
|
}
|
||
|
|
||
|
func NewSectionalCurvature(id string, kms []*proto.Kilometer, radius int32) *SectionalCurvature {
|
||
|
return &SectionalCurvature{
|
||
|
Identity: identity{id, proto.DeviceType_DeviceType_SectionalCurvature},
|
||
|
kms: kms,
|
||
|
radius: radius,
|
||
|
}
|
||
|
}
|