Objects in 3D space move at a certain speed and sometimes require the object to be oriented in the same direction as the velocity,In order to achieve this goal we generally use the rotation matrix M to rotate the object to the corresponding orientation.For example, the velocity direction vector Spdv:vector3d (The x-axis base vector is Axis_x:vector3d (1,0,0), and the direction of the vector is aligned with
I. Traversing a map type
1. First look at the background Java programJava code
Copy Code code as follows:
Map***
The middle assignment operation omitted the
***
Data.put ("Paramvalues", paramvalues);//pass value to velocity
2. Take out the key and value of this map in the velocity template file of the foregroundJava code
Copy Code code as follows:
#foreach ($par
Org.apache.velocity.tools.generic.DateTool
Jfinal can add Request.setattribute ("date", new Datetool ()) to the interceptor, which you can use at any time in the velocity template of the. vm.
About date, as follows:
function examples Show results
function Examples
Show Results
$date
2008-04-22
$date. Long
April 22, 2008 10:58 P.M. 54 seconds
$date. Medium_time
22:58:54
$da
ObjectiveFor the velocity and SPRINGMVC configuration please refer to the previous article, which is not covered here. The main purpose of velocity as a Java template engine is to allow anyone to reference objects defined in Java code using a simple and powerful template language. You can specify a template layout for this page in the velocity file, saving a lot
Spring MVC consolidates the velocity to introduce the packages that need to be imported, such asPom Introduction:Then, is a very simple configuration, then, here, modify the next spring-mvc.xml content, the content is modified as followsXML version= "1.0" encoding= "UTF-8"?>See below the beans this element tag does not have to have the label declaration -Beansxmlns= "Http://www.springframework.org/schema/beans"Xmlns:xsi= "Http://www.w3.org/2001/XMLSch
Detailed description of the velocity template makes Java Web html + js modular, and velocityjavaweb
Detailed description of the velocity template makes Java Web html + js Modular
Some basic data on the page or some frequently used parts on other pages can be made into small components independently. The component reserves the call entry, and the required page can be called directly., The Display category an
sending mail in spring is an easy task, and it's much easier to send it using velocity as a template for mail. First of all, or simply describe the configuration in sping, send mail needs a mail engin:class= "Com.aodragon.jdt.backend.service.impl.MailEngineImpl" > The following classes are implemented: PackageCom.aodragon.jdt.backend.service.impl;ImportJava.util.Map;Importjavax.mail.MessagingException;ImportJavax.mail.internet.MimeMessage;Importorg.ap
Similar to freemarker. Nice stuff.
1 ConfigurationPut the toolbox. xml of velocity under Web-INF, And put velocity. properties under Web-INF.
2 integration with springOrg. Apache. Velocity. Tools. View. servlet. velocityviewservlet
3. Common usage# If ($ userinfo. haspermission (1 ))
....
# End
# Foreach ($ FJ in $ fjlist)# End
# Set ($ I = 1)
Guidance: Velocity:Rationale:$ Username and $! The difference between username. When the username cannot be found, $ username returns the string "$ username", while $! Username returns an empty string ""So: # Set ($! Username = ') determines whether the string is null. The following is the summary of the velocity script. 1,Declaration: # Set ($ Var = xxx) The following content can be leftVariable referenceString LiteralProperty ReferenceMethod refer
Formatter in Spring3 is combined with Velocity to format the output instance, spring3formatter
Before reading this article, I hope you have some knowledge about Spring3's Formatter mechanism. If you do not know about it, you can click here.
In Spring3, there are two levels for formatting. One is for type-level formatting and the other is for field formatting.
First, for formatting at the type level, that is to say, for example, if I use a formatting s
Php Chinese network (www.php.cn) provides the most comprehensive basic tutorial on programming technology, introducing HTML, CSS, Javascript, Python, Java, Ruby, C, PHP, basic knowledge of MySQL and other programming languages. At the same time, this site also provides a large number of online instances, through which you can better learn programming...
The fourth application example of velocity-traversing the Map set
// 2 Create a Context objectV
Velocity Fifth Application Example---get an index of the current iteration
#foreach ($key in $map. KeySet ()) $velocityCount > $key: $map. Get ($key) #end $ Velocitycount get the current iteration index Velocitycount variable name can be modified by Directive.foreach.counter.name property, such as: directive.foreach.counter.name= Index, which can be accessed later through $index. The index of the iteration starts from 1 and we can modify it by direct
Dash on Mac is a great API document management tool and a great tool for program development. I had expected dash to launch the Windows version, but unfortunately, the author Kapeli not. And at that time, he recommended zeal this open source project to me.Not long ago, Kapeli updated his blog, sharing a Windows API documentation tool-Velocity. Although developed by others, Kapeli is very generous in providing documentation data.Velocity's latest versi
Many times, the reasons for convenience or compromise, or versatility or limitation, are the result of template generation, which describes two scenarios for using velocity merge, the first of which is the same as spring MVC. Place the template under the path specified by the Velocityconfigurer property, such as:This time, as long as the template is placed under the views, and then directly through the definition of the bean MVC context can be, as fol
Velocity is a java-based template engine that allows anyone to reference objects defined by java code simply using the template language. Configuration: 1. in pom. add the dependent velocity package in xml [html]
Brief introduction cubic-bezierAlso known as three times Bezier, a curve is depicted with four dots (P0,P1,P2,P3).P0 defaults to (0,0), P3 defaults to (). So we just have to focus on P1,P2.In the CSS3 animation, it is used to represent the speed curve.about the three-time Bell curve:Formula:;Want to know three times Bell curve, self Baidu.don't want to know can be directly adjusted on this website: http://www.roblaplaca.com/examples/bezierBuilder/# get parameters. The website is slow to ente
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.