public TerrainOverlayNetworkNode(SectorNodeDescription sectorNodeDescription, LocalGeometryView localGeometryView, PolyNode landPolyNode)
        {
            SectorNodeDescription = sectorNodeDescription;
            LocalGeometryView     = localGeometryView;
            LandPolyNode          = landPolyNode;

            CrossoverPointManager = new PolyNodeCrossoverPointManager(landPolyNode);
        }
Ejemplo n.º 2
0
 public static PortalSectorEdgeDescription Build(
     SectorNodeDescription source,
     SectorNodeDescription destination,
     IntLineSegment2 sourceSegment,
     Clockness sourceInClockness,
     IntLineSegment2 destinationSegment,
     Clockness destinationInClockness
     )
 {
     return new PortalSectorEdgeDescription {
     Source = source,
     Destination = destination,
     SourceSegment = sourceSegment,
     SourceInClockness = sourceInClockness,
     DestinationSegment = destinationSegment,
     DestinationInClockness = destinationInClockness
      };
 }
Ejemplo n.º 3
0
 public static DoubleVector3 LocalToWorldNormal(this SectorNodeDescription snd, IntVector3 local)
 {
     return(Vector3.TransformNormal(new Vector3(local.X, local.Y, local.Z), snd.WorldTransform).ToOpenMobaVector());
 }
Ejemplo n.º 4
0
 public static DoubleVector3 LocalToWorld(this SectorNodeDescription snd, DoubleVector2 local)
 {
     return(Vector3.Transform(new Vector3((float)local.X, (float)local.Y, 0), snd.WorldTransform).ToOpenMobaVector());
 }
Ejemplo n.º 5
0
 public static DoubleVector3 WorldToLocalNormal(this SectorNodeDescription snd, DoubleVector3 world)
 {
     return(Vector3.TransformNormal(world.ToDotNetVector(), snd.WorldTransformInv).ToOpenMobaVector());
 }
Ejemplo n.º 6
0
 public static DoubleVector3 LocalToWorldNormal(this SectorNodeDescription snd, DoubleVector3 local, float z = 0)
 {
     return(Vector3.TransformNormal(new Vector3((float)local.X, (float)local.Y, (float)local.Z), snd.WorldTransform).ToOpenMobaVector());
 }