public PositionDataItem(GePoint point) { Debug.Assert(point != null); if(point != null) { m_point = (GePoint)point.Clone(); } }
public void SetPosition(GePoint Position) { Debug.Assert(Position != null); if (Position != null) m_Position = (GePoint)Position.Clone(); //if (m_String.FontID > -1) //GraphicChangeNotify(); }
public GeRectangle(GePoint Point1, GePoint Point2) { Debug.Assert(Point1 != null && Point2 != null); GePoint tmpP1 = null; if (Point1 != null) tmpP1 = (GePoint)Point1.Clone(); else tmpP1 = GePoint.kOrigin; GePoint tmpP2 = null; if (Point2 != null) tmpP2 = (GePoint)Point2.Clone(); else tmpP2 = GePoint.kOrigin; m_MinPoint = new GePoint( MathUtil.Min(tmpP1.X, tmpP2.X), MathUtil.Min(tmpP1.Y, tmpP2.Y)); m_MaxPoint = new GePoint( MathUtil.Max(tmpP1.X, tmpP2.X), MathUtil.Max(tmpP1.Y, tmpP2.Y)); }
public GeometryVisitor(SnapContext ctx, GePoint point) { m_SnapContext = ctx; m_ReferencePoint = (GePoint)point.Clone(); }
public void SetPoint(GePoint point) { m_Point = (GePoint)point.Clone(); }
public void MoveTo(GePoint Target) { m_MaxPoint = m_MaxPoint + (Target - m_MinPoint); m_MinPoint = (GePoint)Target.Clone(); }
public DisplayItemPoint(GePoint point) { m_Point = (GePoint)point.Clone(); }