/*
GeoGebra - Dynamic Mathematics for Everyone
http://www.geogebra.org
This file is part of GeoGebra.
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation.
*/
package org.geogebra.common.geogebra3D.kernel3D.algos;
import org.geogebra.common.kernel.Construction;
import org.geogebra.common.kernel.Matrix.Coords;
import org.geogebra.common.kernel.geos.GeoElement;
import org.geogebra.common.kernel.kernelND.GeoPointND;
import org.geogebra.common.kernel.kernelND.GeoVectorND;
/**
* Compute a plane through a point and orthogonal to a line (or segment, ...)
*
* @author Matthieu
*/
public class AlgoOrthoPlanePointVector extends AlgoOrthoPlanePoint {
/**
*
* @param cons
* construction
* @param label
* output label
* @param point
* point
* @param vector
* vector
*/
public AlgoOrthoPlanePointVector(Construction cons, String label,
GeoPointND point, GeoVectorND vector) {
super(cons, label, point, (GeoElement) vector);
}
@Override
protected Coords getNormal() {
return ((GeoVectorND) getSecondInput()).getCoordsInD3();
}
}