Documentation
¶
Overview ¶
Package body implement Body model, which store basic Geometry description.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Body ¶
type Body struct {
ID ID `json:"id"`
Name string `json:"name,omitempty"`
Geometry Geometry `json:"geometry"`
}
Body store Geometry interface described by ID and Name.
func (*Body) UnmarshalJSON ¶
UnmarshalJSON custom Unmarshal function. GeometryType is recognized by geometry/type in json.
type Cuboid ¶
Cuboid represent cuboid of given sizes in a space.
func (Cuboid) MarshalJSON ¶
MarshalJSON json.Marshaller implementaion.
type Cylinder ¶
type Cylinder struct {
Center common.Point `json:"baseCenter"`
Height float64 `json:"height"`
Radius float64 `json:"radius"`
}
Cylinder represent cylinder of given sizes in a space.
func (Cylinder) MarshalJSON ¶
MarshalJSON json.Marshaller implementaion.
Click to show internal directories.
Click to hide internal directories.