//********************************** Banshee Engine (www.banshee3d.com) **************************************************//
//**************** Copyright (c) 2016 Marko Pintera (marko.pintera@gmail.com). All rights reserved. **********************//
using System.Runtime.InteropServices;
namespace BansheeEngine
{
/** @addtogroup Math
* @{
*/
///
/// Represents a line segment in three dimensional space defined by a start and an end point.
///
[StructLayout(LayoutKind.Sequential), SerializeObject]
public struct LineSegment
{
[SerializeField]
private Vector3 start;
[SerializeField]
private Vector3 end;
///
/// Start position of the line segment.
///
public Vector3 Start
{
get { return start; }
set { start = value; }
}
///
/// End position of the line segment.
///
public Vector3 End
{
get { return end; }
set { end = value; }
}
///
/// Creates a new line segment.
///
/// Line segment start position.
/// Line segment end position.
public LineSegment(Vector3 start, Vector3 end)
{
this.start = start;
this.end = end;
}
}
/** @} */
}