LavishNav:Aggregate (Region Type)
From Lavish Software Wiki
Contents |
[edit]
Introduction
[edit]
What is an Aggregate?
An aggregate is exactly like a universe, but with a different behavior for containment.
[edit]
Aggregate Behaviors
[edit]
Containment
An aggregate contains a given point if and only if any of its defined children contains that point. Aggregates should be used sparingly due to this fact, and at the very least, with a very small set of children. Aggregate children of aggregates would be especially bad.
[edit]
Nearest Point
The nearest point within this region to any given point is the given point.
[edit]
Center Point
The center point of an aggregate is its defined location.
[edit]
Aggregate Characteristics
Aggregates are descendants of the base region type. Any characteristics of the base region type may be applied in addition to the aggregate-specific characteristics described below.
[edit]
Aggregate-Specific Properties
- X
- X-coordinate. Defaults to 0.
- Y
- Y-coordinate. Defaults to 0.
- Z
- Z-coordinate. Defaults to 0.
[edit]
Programming with aggregates
- LavishScript
- lnavaggregate Object Type
- .NET
- Aggregate class
[edit]
Examples
[edit]
Example XML code
<Aggregate Name="My Aggregate" Unique="1"> <X>123.456</X> <Y>456.789</Y> <Z>789</Z> </Aggregate>
[edit]
