You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
469 B
33 lines
469 B
package mightypork.utils.math.constraints;
|
|
|
|
|
|
import mightypork.utils.math.coord.VecView;
|
|
|
|
|
|
public abstract class VecConstraintSynth implements VecConstraint {
|
|
|
|
@Override
|
|
public abstract VecView getVec();
|
|
|
|
|
|
@Override
|
|
public NumberConstraint xc()
|
|
{
|
|
return Constraints.cX(getVec());
|
|
}
|
|
|
|
|
|
@Override
|
|
public NumberConstraint yc()
|
|
{
|
|
return Constraints.cY(getVec());
|
|
}
|
|
|
|
|
|
@Override
|
|
public NumberConstraint zc()
|
|
{
|
|
return Constraints.cZ(getVec());
|
|
}
|
|
|
|
}
|
|
|