예제 #1
0
		public Line3 ToLine()
		{
			Line3 result;
			result.Start = Start.ToVector3();
			result.End = End.ToVector3();
			return result;
		}
예제 #2
0
        public Ray ToRay()
        {
            Ray result;

            result.Origin    = Origin.ToVector3();
            result.Direction = Direction.ToVector3();
            return(result);
        }
예제 #3
0
        public Sphere ToSphere()
        {
            Sphere result;

            result.Origin = Origin.ToVector3();
            result.Radius = Radius;
            return(result);
        }
예제 #4
0
        public Cone ToCone()
        {
            Cone result;

            result.Origin = Origin.ToVector3();
            result.Axis   = Axis.ToVector3();
            result.Angle  = Angle;
            return(result);
        }
예제 #5
0
        public Cylinder ToCylinder()
        {
            Cylinder result;

            result.Point1 = Point1.ToVector3();
            result.Point2 = Point2.ToVector3();
            result.Radius = Radius;
            return(result);
        }
예제 #6
0
        public Capsule ToCapsule()
        {
            Capsule result;

            result.Point1 = Point1.ToVector3();
            result.Point2 = Point2.ToVector3();
            result.Radius = Radius;
            return(result);
        }