The sign class is inherited by Constraint and Convex. Assignment and copy operators are used in both scopes.
Copy constructor
Assignment
The Constraint is really a cone on the sky-sphere. It is characterized by its direction a_, the opening angle s_ and its cosine -- the distance of the plane intersecting the sphere and the sphere center. If d_ = 0, we have a half-sphere. If it is negative, we have a 'hole' i.e. the room angle is larger than 90degrees.
Example: positive distance
____ --- --- / /|\ / / |=\ | / |==| this side is in the convex. | /\s |===| |------------|---| -> direction a | \ |===| | \ |==| \ \ |=/ \ \|/ ---____--- <-d-> is positive (s < 90)Example: negative distance
____ ---====--- this side is /========/|\ in the /========/=| \ convex |==== s__/==| | |===== / /===| | dir. a <- |------------|---| 'hole' in the sphere |========\===| | |========\==| | \========\=| / \========\|/ ---____--- <-d-> is negative (s > 90)for d=0 we have a half-sphere. Combining such, we get triangles, rectangles etc on the sphere surface (pure ZERO convexes)
Copy constructor
Assignment
Invert
check whether a vector is inside this
give back vector
give back distance
read
write