ddnguyen / slimmath

Automatically exported from code.google.com/p/slimmath
0 stars 0 forks source link

Missing constructor in Plane #9

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi josh!

I'm back here :)

Plane class is missing the following constructor that is sometimes useful and 
is part of SlimDX.Plane

/// <summary>
/// Initializes a new instance of the <see cref="T:SlimMath.Plane" /> class.
/// </summary>
/// <param name="point">Any point that lies along the plane.</param>
/// <param name="normal">The normal vector to the plane.</param>
public Plane(Vector3 point, Vector3 normal)
{
    this.Normal = normal;
    this.D = -Vector3.Dot(normal, point);
}

Original issue reported on code.google.com by alx.xo...@gmail.com on 28 Nov 2010 at 11:13

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks. I will commit your patch soon.

Original comment by Jorgy...@gmail.com on 14 Feb 2011 at 8:09

GoogleCodeExporter commented 8 years ago
Your patch has been committed in r41. Thank you very much!

Original comment by Jorgy...@gmail.com on 15 Feb 2011 at 1:18