本文整理汇总了C#中Box2D.Common.Vec2.Clone方法的典型用法代码示例。如果您正苦于以下问题:C# Vec2.Clone方法的具体用法?C# Vec2.Clone怎么用?C# Vec2.Clone使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Box2D.Common.Vec2
的用法示例。
在下文中一共展示了Vec2.Clone方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Mat22
/// <summary>
/// Create a matrix with given vectors as columns.
/// </summary>
/// <param name="c1">Column 1 of matrix</param>
/// <param name="c2">Column 2 of matrix</param>
public Mat22(Vec2 c1, Vec2 c2)
{
Ex = c1.Clone();
Ey = c2.Clone();
}
示例2: AABB
/// <summary>
/// Creates an AABB object using the given bounding vertices.
/// </summary>
/// <param name="lowerVertex">the bottom left vertex of the bounding box</param>
/// <param name="maxVertex">the top right vertex of the bounding box</param>
public AABB(Vec2 lowerVertex, Vec2 upperVertex)
{
this.lowerBound = lowerVertex.Clone(); // clone to be safe
this.upperBound = upperVertex.Clone();
}
示例3: Transform
/// <summary>Initialize using a position vector and a rotation matrix. </summary>
public Transform(Vec2 _position, Rot _R)
{
p = _position.Clone();
q = _R.Clone();
}
示例4: Transform
/// <summary>
/// Initialize using a position vector and a rotation matrix.
/// </summary>
public Transform(Vec2 position, Rot r)
{
P = position.Clone();
Q = r.Clone();
}
示例5: Mat22
/// <summary>
/// Create a matrix with given vectors as columns.
/// </summary>
/// <param name="c1">Column 1 of matrix</param>
/// <param name="c2">Column 2 of matrix</param>
public Mat22(Vec2 c1, Vec2 c2)
{
ex = c1.Clone();
ey = c2.Clone();
}
示例6: AABB
/// <summary>
/// Creates an AABB object using the given bounding vertices.
/// </summary>
/// <param name="lowerVertex">the bottom left vertex of the bounding box</param>
/// <param name="upperVertex">the top right vertex of the bounding box</param>
public AABB(Vec2 lowerVertex, Vec2 upperVertex)
{
LowerBound = lowerVertex.Clone(); // clone to be safe
UpperBound = upperVertex.Clone();
}