本文整理汇总了C#中Point2D.getX方法的典型用法代码示例。如果您正苦于以下问题:C# Point2D.getX方法的具体用法?C# Point2D.getX怎么用?C# Point2D.getX使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Point2D
的用法示例。
在下文中一共展示了Point2D.getX方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: setCurve
public void setCurve(Point2D p1, Point2D cp, Point2D p2)
{
setCurve(p1.getX(), p1.getY(), cp.getX(), cp.getY(), p2.getX(), p2.getY());
}
示例2: transform
public Point2D transform(Point2D src, Point2D dst)
{
if (dst == null)
{
if (src is Point2D.Double)
{
dst = new Point2D.Double();
}
else
{
dst = new Point2D.Float();
}
}
double x = src.getX();
double y = src.getY();
dst.setLocation(x * m00 + y * m01 + m02, x * m10 + y * m11 + m12);
return dst;
}
示例3: contains
public bool contains(Point2D p)
{
return contains(p.getX(), p.getY());
}
示例4: add
public void add(Point2D p)
{
add(p.getX(), p.getY());
}
示例5: inverseTransform
public Point2D inverseTransform(Point2D src, Point2D dst)
{
//throws NoninvertibleTransformException {
double det = getDeterminant();
if (java.lang.Math.abs(det) < ZERO)
{
// awt.204=Determinant is zero
throw new NoninvertibleTransformException("Determinant is zero"); //$NON-NLS-1$
}
if (dst == null)
{
if (src is Point2D.Double)
{
dst = new Point2D.Double();
}
else
{
dst = new Point2D.Float();
}
}
double x = src.getX() - m02;
double y = src.getY() - m12;
dst.setLocation((x * m11 - y * m01) / det, (y * m00 - x * m10) / det);
return dst;
}
示例6: contains
public bool contains(Point2D point)
{
return contains(point.getX(), point.getY());
}
示例7: outcode
public int outcode(Point2D p)
{
return outcode(p.getX(), p.getY());
}
示例8: setFrameFromCenter
public void setFrameFromCenter(Point2D center, Point2D corner)
{
setFrameFromCenter(center.getX(), center.getY(), corner.getX(), corner.getY());
}
示例9: setFrameFromDiagonal
public void setFrameFromDiagonal(Point2D p1, Point2D p2)
{
setFrameFromDiagonal(p1.getX(), p1.getY(), p2.getX(), p2.getY());
}
示例10: setFrame
public void setFrame(Point2D loc, Dimension2D size)
{
setFrame(loc.getX(), loc.getY(), size.getWidth(), size.getHeight());
}
示例11: setLine
public void setLine(Point2D p1, Point2D p2)
{
setLine(p1.getX(), p1.getY(), p2.getX(), p2.getY());
}
示例12: relativeCCW
public int relativeCCW(Point2D p)
{
return relativeCCW(getX1(), getY1(), getX2(), getY2(), p.getX(), p.getY());
}
示例13: ptSegDistSq
public double ptSegDistSq(Point2D p)
{
return ptSegDistSq(getX1(), getY1(), getX2(), getY2(), p.getX(), p.getY());
}
示例14: ptLineDist
public double ptLineDist(Point2D p)
{
return ptLineDist(getX1(), getY1(), getX2(), getY2(), p.getX(), p.getY());
}