Basics types
Point. A point is represented as a vector. Example:
p = [0.0, 0.0, 1.0]
Line
SemiAlgebraicTypes.Line
— TypeLine{T}
represented by two points pt0
, pt1
.
The type T
is the promote type of the entry type of pt0, pt1
.
Example
Line([0,0,0], [1.,0,0])
- Sphere
SemiAlgebraicTypes.Sphere
— TypeSphere{T}
represented by a point center
and a radius
. The type T
is the promote type of the entry type of center
and the type of radius
.
Example
Sphere([0,0,0], 1.)
- Cylinder
SemiAlgebraicTypes.Cylinder
— TypeCylinder{T}
represented by two points pt0
, pt1
and a number radius
. The type T
is the promote type of the entry type of pt0, pt1
and the type of radius
.
Example
Cylinder([0,0,0],[0,0,1], 0.5)
- Cone
SemiAlgebraicTypes.Cone
— TypeCone{T}
represented by two points pt0, pt1
and a number radius
. The apex of the cone is the first point. The type T
is the promote type of the entry type of pt0, pt1
and the type of radius
.
Example
Cone([1,0,0], [0,0,0], 0.5)
- Ellipsoid
SemiAlgebraicTypes.Ellipsoid
— TypeEllipsoid{T}
represented by
c
the centersx, sy, sz
semi-axes. They should be orthogonal but this not checked at the construction.
The type T
is the promote type of the entry types of c, sx, sy, sz
.
Example
Ellipsoid([0,0,0], [1,0,0], [0,0.5,0], [0,0,0.1])