本文整理汇总了C#中touchvg.core.Matrix2d类的典型用法代码示例。如果您正苦于以下问题:C# Matrix2d类的具体用法?C# Matrix2d怎么用?C# Matrix2d使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Matrix2d类属于touchvg.core命名空间,在下文中一共展示了Matrix2d类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: postMultBy
public Matrix2d postMultBy(Matrix2d rightSide) {
Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_postMultBy(swigCPtr, Matrix2d.getCPtr(rightSide)), false);
if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
开发者ID:rhcad,项目名称:touchvg-v0.6,代码行数:5,代码来源:Matrix2d.cs
示例2: shearing
public static Matrix2d shearing(float sx, float sy) {
Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_shearing__SWIG_1(sx, sy), true);
return ret;
}
开发者ID:rhcad,项目名称:touchvg-v0.6,代码行数:4,代码来源:Matrix2d.cs
示例3: transform
public override void transform(Matrix2d mat)
{
touchvgPINVOKE.MgEllipse_transform(swigCPtr, Matrix2d.getCPtr(mat));
if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
}
开发者ID:vvhh2002,项目名称:TouchVG,代码行数:5,代码来源:MgEllipse.cs
示例4: scaling
public static Matrix2d scaling(float scaleX, float scaleY) {
Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_scaling__SWIG_3(scaleX, scaleY), true);
return ret;
}
开发者ID:rhcad,项目名称:touchvg-v0.6,代码行数:4,代码来源:Matrix2d.cs
示例5: mirroring
public static Matrix2d mirroring(Point2d pnt, Vector2d dir) {
Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_mirroring__SWIG_2(Point2d.getCPtr(pnt), Vector2d.getCPtr(dir)), true);
if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
开发者ID:rhcad,项目名称:touchvg-v0.6,代码行数:5,代码来源:Matrix2d.cs
示例6: translation
public static Matrix2d translation(Vector2d vec) {
Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_translation(Vector2d.getCPtr(vec)), true);
if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
开发者ID:rhcad,项目名称:touchvg-v0.6,代码行数:5,代码来源:Matrix2d.cs
示例7: rotation
public static Matrix2d rotation(float angle) {
Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_rotation__SWIG_1(angle), true);
return ret;
}
开发者ID:rhcad,项目名称:touchvg-v0.6,代码行数:4,代码来源:Matrix2d.cs
示例8: coordSystem
public static Matrix2d coordSystem(Vector2d e0, Vector2d e1, Point2d origin) {
Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_coordSystem__SWIG_0(Vector2d.getCPtr(e0), Vector2d.getCPtr(e1), Point2d.getCPtr(origin)), true);
if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
开发者ID:rhcad,项目名称:touchvg-v0.6,代码行数:5,代码来源:Matrix2d.cs
示例9: setCoordSystem
public Matrix2d setCoordSystem(Vector2d e0, Vector2d e1, Point2d origin) {
Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setCoordSystem(swigCPtr, Vector2d.getCPtr(e0), Vector2d.getCPtr(e1), Point2d.getCPtr(origin)), false);
if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
开发者ID:rhcad,项目名称:touchvg-v0.6,代码行数:5,代码来源:Matrix2d.cs
示例10: getCPtr
internal static HandleRef getCPtr(Matrix2d obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
开发者ID:rhcad,项目名称:touchvg-v0.6,代码行数:3,代码来源:Matrix2d.cs
示例11: isEqualTo
public bool isEqualTo(Matrix2d mat) {
bool ret = touchvgPINVOKE.Matrix2d_isEqualTo__SWIG_1(swigCPtr, Matrix2d.getCPtr(mat));
if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
开发者ID:rhcad,项目名称:touchvg-v0.6,代码行数:5,代码来源:Matrix2d.cs
示例12: inverse
public Matrix2d inverse() {
Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_inverse(swigCPtr), true);
return ret;
}
开发者ID:rhcad,项目名称:touchvg-v0.6,代码行数:4,代码来源:Matrix2d.cs
示例13: setToProduct
public Matrix2d setToProduct(Matrix2d m1, Matrix2d m2) {
Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setToProduct(swigCPtr, Matrix2d.getCPtr(m1), Matrix2d.getCPtr(m2)), false);
if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
开发者ID:rhcad,项目名称:touchvg-v0.6,代码行数:5,代码来源:Matrix2d.cs
示例14: setToMirroring
public Matrix2d setToMirroring(Point2d pnt, Vector2d dir) {
Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setToMirroring__SWIG_2(swigCPtr, Point2d.getCPtr(pnt), Vector2d.getCPtr(dir)), false);
if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
开发者ID:rhcad,项目名称:touchvg-v0.6,代码行数:5,代码来源:Matrix2d.cs
示例15: setToIdentity
public Matrix2d setToIdentity() {
Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setToIdentity(swigCPtr), false);
return ret;
}
开发者ID:rhcad,项目名称:touchvg-v0.6,代码行数:4,代码来源:Matrix2d.cs
示例16: setToShearing
public Matrix2d setToShearing(float sx, float sy) {
Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setToShearing__SWIG_1(swigCPtr, sx, sy), false);
return ret;
}
开发者ID:rhcad,项目名称:touchvg-v0.6,代码行数:4,代码来源:Matrix2d.cs
示例17: set
public Matrix2d set(float _m11, float _m12, float _m21, float _m22, float _dx, float _dy) {
Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_set(swigCPtr, _m11, _m12, _m21, _m22, _dx, _dy), false);
return ret;
}
开发者ID:rhcad,项目名称:touchvg-v0.6,代码行数:4,代码来源:Matrix2d.cs
示例18: setToTranslation
public Matrix2d setToTranslation(Vector2d vec) {
Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setToTranslation(swigCPtr, Vector2d.getCPtr(vec)), false);
if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
开发者ID:rhcad,项目名称:touchvg-v0.6,代码行数:5,代码来源:Matrix2d.cs
示例19: setToRotation
public Matrix2d setToRotation(float angle) {
Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setToRotation__SWIG_1(swigCPtr, angle), false);
return ret;
}
开发者ID:rhcad,项目名称:touchvg-v0.6,代码行数:4,代码来源:Matrix2d.cs
示例20: setToScaling
public Matrix2d setToScaling(float scale, Point2d center) {
Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setToScaling__SWIG_0(swigCPtr, scale, Point2d.getCPtr(center)), false);
if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
开发者ID:rhcad,项目名称:touchvg-v0.6,代码行数:5,代码来源:Matrix2d.cs
注:本文中的touchvg.core.Matrix2d类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论