Package gwlpr.protocol.util

Examples of gwlpr.protocol.util.Vector4


        p.uInt = 3;
        p.uLong = 4;
        p.single = 5.0F;
        p.vec2 = new Vector2(6.0F, 7.0F);
        p.vec3 = new Vector3(8.0F, 9.0F, 10.0F);
        p.vec4 = new Vector4(11.0F, 12.0F, 13.0F, 14.0F);
        p.dw3 = new WorldPosition(15.0F, 16.0F, 17.0F, 18);
        p.vint = 19;
        p.ascii = "20";
        p.utf16 = "21";
        p.constBuf = new byte[] {(byte)22, (byte)23};
View Full Code Here


       
        @Override
        protected void put(ByteBuf buf, Object object)
                throws Exception
        {
            Vector4 vec = (Vector4)field.get(object);
            buf.writeFloat(vec.getX());
            buf.writeFloat(vec.getY());
            buf.writeFloat(vec.getZ());
            buf.writeFloat(vec.getA());
        }
View Full Code Here

        }
       
        @Override
        protected Object get(ByteBuf buf)
        {
            return buf.readableBytes() >= 16 ? new Vector4(buf.readFloat(), buf.readFloat(), buf.readFloat(), buf.readFloat()) : null;
        }
View Full Code Here

TOP

Related Classes of gwlpr.protocol.util.Vector4

Copyright © 2018 www.massapicom. 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.