Examples of clamp()


Examples of engine.base.Vector4.clamp()

      color.add_ip(c0);
    } else if (func == 9) { // Subtract
      color.set(c0).sub_ip(c1);
    }
   
    color.clamp(0.0f, 1.0f);
   
    float origW = c0.w; // keep alpha ???
    c0.mult_ip(1.0f - alpha);
    c0.mult_add_ip(alpha, color);
    c0.w = origW;
View Full Code Here

Examples of org.fxmisc.richtext.TwoDimensional.Position.clamp()

    public void testRightBoundary() {
        Position pos = navigator.offsetToPosition(100, Forward);
        assertEquals(4, pos.getMajor());
        assertEquals(60, pos.getMinor());

        pos = pos.clamp();
        assertEquals(4, pos.getMajor());
        assertEquals(9, pos.getMinor());
    }

    @Test
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.