internal ArcEntity() { CenterPoint = new PointEntity(); Normal = DsVector.ByCoordinates(0, 0, 1); Radius = 1; StartAngle = 30; SweepAngle = 60; }
public virtual IVector TangentAtParameter(double param) { if (null != StartPoint && null != EndPoint) { return(DsVector.ByCoordinates(EndPoint.X - StartPoint.X, EndPoint.Y - StartPoint.Y, EndPoint.Z - StartPoint.Z)); } return(DsVector.ByCoordinates(param, param, param)); }
internal CoordinateEntity() { this.Origin = new PointEntity() { X = 0, Y = 0, Z = 0 }; this.XAxis = DsVector.ByCoordinates(1, 0, 0); this.YAxis = DsVector.ByCoordinates(0, 1, 0); this.ZAxis = DsVector.ByCoordinates(0, 0, 1); }
public IVector[] GetVertexNormals() { return(new DsVector[2] { DsVector.ByCoordinates(0, 0, 1), DsVector.ByCoordinates(1, 0, 0) }); }
internal CircleEntity() { this.CenterPoint = new PointEntity(0, 0, 0); this.Radius = 3; this.Normal = DsVector.ByCoordinates(0, 0, 1); }
internal IVector directionTo(IPointEntity point) { return(DsVector.ByCoordinates(point.X - this.X, point.Y - this.Y, point.Z - this.Z)); }
internal PlaneEntity() { this.Origin = new PointEntity(); this.Normal = DsVector.ByCoordinates(0, 0, 1); this.contextCS = new CoordinateEntity(); }
public void UpdateCuboid(double[] data, double length, double width, double height) { PointEntity origin = new PointEntity(data[0], data[1], data[2]); ContextCoordinateSystem.Set(origin, DsVector.ByCoordinates(length, 0, 0), DsVector.ByCoordinates(0, width, 0), DsVector.ByCoordinates(0, 0, height)); }
public IVector NormalAtParameter(double u, double v) { return(DsVector.ByCoordinates(u, v, u + v)); }
public virtual IVector NormalAtParameter(double param) { return(DsVector.ByCoordinates(param, param, param)); }
public IVectorEntity NormalAtPoint(IPointEntity point) { return(DsVector.ByCoordinates(point.X, point.Y, point.Z)); }
public IVectorEntity TangentAtVParameter(double u, double v) { return(DsVector.ByCoordinates(0, u, v)); }