Example #1
0
    public GameObject CreateParallelLineThroughDot(Line line, Vector3 dot, Transform transform, Material material)
    {
        List <Func <float, float> > parallelLineEquations = LineEquationAlgorithms.CreateLineEquationOfParallelLine(line.StartPoint, line.EndPoint, dot);

        float parameter = 5;

        return(CreateLongLineObjectCore(parallelLineEquations, transform, material, parameter));
    }
Example #2
0
    public GameObject CreateLongLineObject(Vector3 start, Vector3 end, Transform transform, Material material, float parameter)
    {
        List <Func <float, float> > equations = LineEquationAlgorithms.CreateLineEquation(start, end);

        return(CreateLongLineObjectCore(equations, transform, material, parameter));
    }
Example #3
0
    public GameObject CreateDotBetweenLines(Line first, Line second, Transform transform, Material material)
    {
        Vector3 pointBetweenLines = LineEquationAlgorithms.FindLinesIntersection(first, second);

        return(CreateDot(pointBetweenLines, transform, material));
    }