Example #1
0
        public SpecklePlane(SpecklePoint origin, SpeckleVector normal, SpeckleVector XDir, SpeckleVector YDir, string applicationId = null, Dictionary <string, object> properties = null)
        {
            this.Origin        = origin;
            this.Normal        = normal;
            this.Xdir          = XDir;
            this.Ydir          = YDir;
            this.ApplicationId = applicationId;
            this.Properties    = properties;

            GenerateHash();
        }
Example #2
0
 public static BHG.Vector FromSpeckle(this SCG.SpeckleVector speckleVector)
 {
     return(new BHG.Vector {
         X = speckleVector.Value[0], Y = speckleVector.Value[1], Z = speckleVector.Value[2]
     });
 }