public static Vector3f mutable(Point point) { return Vector3f.mutable(point.x, point.y, 0); }
@Override public Vector3f toMutable() { return Vector3f.mutable(x, y, z); }
/** * Create a frozen {@link Vector3f} using the specified value for all axes. * * @param v the value used for all axes * @return a frozen {@code Vector3f} * @throw {@link IllegalArgumentException} if {@code v} is {@code NaN} */ public static Vector3f frozen(float v) { return Vector3f.mutable(v, v, v); }
public static Vector3f mutable(Dimension dimension) { return Vector3f.mutable(dimension.width, dimension.height, 0); }