rts-sim-module/repository/sectional_curvature.go

18 lines
423 B
Go
Raw Normal View History

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,
}
}