public AlignedCubeZone(RegionKey region, ZoneKey key, Vector3 center, Vector3 width) : base(region, key, center)
        {
            Width = width;

            _min = new Vector3(center.X - width.X / 2, center.Y - width.Y / 2, center.Z - width.Z / 2);
            _max = new Vector3(center.X + width.X / 2, center.Y + width.Y / 2, center.Z + width.Z / 2);
        }
Beispiel #2
0
 /// <summary>
 /// Two DnsResourceDataDnsKey are equal iff their zone key, revoke, secure entry point, protocol, algorithm and public key fields are equal.
 /// </summary>
 public bool Equals(DnsResourceDataDnsKey other)
 {
     return(other != null &&
            ZoneKey.Equals(other.ZoneKey) &&
            Revoke.Equals(other.Revoke) &&
            SecureEntryPoint.Equals(other.SecureEntryPoint) &&
            Protocol.Equals(other.Protocol) &&
            Algorithm.Equals(other.Algorithm) &&
            PublicKey.Equals(other.PublicKey));
 }
Beispiel #3
0
 public Zone(RegionKey region, ZoneKey key, Vector3 center)
 {
     Region = region;
     Key    = key;
     Center = center;
 }
Beispiel #4
0
 public SphericalZone(RegionKey region, ZoneKey key, float x, float y, float z, float radius) : this(region, key, new Vector3(x, y, z), radius)
 {
 }
Beispiel #5
0
 public SphericalZone(RegionKey region, ZoneKey key, Vector3 center, float radius) : base(region, key, center)
 {
     Radius = radius;
 }
 public AlignedCubeZone(RegionKey region, ZoneKey key, float x, float y, float z, float wx, float wy, float wz) : this(region, key, new Vector3(x, y, z), new Vector3(wx, wy, wz))
 {
 }